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 | 4x 10x 8x 4x 4x | import propTypes from 'prop-types' /** * Contains build time stamp */ export default function DateModified(props) { return ( <dl id={props.id} className="container mx-auto pl-6 text-sm"> <dt className="inline">{props.text}</dt> <dd className="inline">{process.env.NEXT_PUBLIC_BUILD_DATE}</dd> </dl> ) } DateModified.defaultProps = { id: 'date-modified', text: 'Date Modified:', } DateModified.propTypes = { // text to be displayed text: propTypes.string, // id of the element for testing if needed id: propTypes.string, } |