Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 3x 4x 3x | export interface DateModifiedProps {
// text to be displayed
text?: string
// id of the element for testing if needed
id?: string
}
/**
* Contains build time stamp
*/
const DateModified = ({ id, text }: DateModifiedProps) => {
return (
<dl id={id} className="container mx-auto px-4 py-8">
<dt className="inline">{text}</dt>
<dd className="inline">
<time>{process.env.NEXT_PUBLIC_BUILD_DATE}</time>
</dd>
</dl>
)
}
DateModified.defaultProps = {
id: 'date-modified',
text: 'Date Modified: ',
}
export default DateModified
|