MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / FormattedDate

Function FormattedDate

examples/archive/starter/components/date.tsx:4–7  ·  view source on GitHub ↗
({ dateString })

Source from the content-addressed store, hash-verified

2import type { FC } from 'react'
3
4export const FormattedDate: FC<{ dateString: string }> = ({ dateString }) => {
5 const date = parseISO(dateString)
6 return <time dateTime={dateString}>{format(date, 'LLLL d, yyyy')}</time>
7}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…