tag and folder pages
This commit is contained in:
12
quartz/components/Date.tsx
Normal file
12
quartz/components/Date.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
interface Props {
|
||||
date: Date
|
||||
}
|
||||
|
||||
export function Date({ date }: Props) {
|
||||
const formattedDate = date.toLocaleDateString('en-US', {
|
||||
year: "numeric",
|
||||
month: "short",
|
||||
day: '2-digit'
|
||||
})
|
||||
return <>{formattedDate}</>
|
||||
}
|
Reference in New Issue
Block a user