diff --git a/components/Date.vue b/components/Date.vue index ebef90e..30f1a1d 100644 --- a/components/Date.vue +++ b/components/Date.vue @@ -2,10 +2,10 @@ import { getPrettyDate, getUtcDate } from "~~/shared/metadata"; import type { AnyParsedContent } from "~~/shared/types"; -const props = defineProps<{ doc: AnyParsedContent }>(); +const { doc } = defineProps<{ doc: AnyParsedContent }>(); -const prettyDate = getPrettyDate(props.doc); -const utcDate = getUtcDate(props.doc); +const prettyDate = getPrettyDate(doc); +const utcDate = getUtcDate(doc);