supMDX/components/Footer.tsx
2022-11-04 21:47:43 +09:00

10 lines
308 B
TypeScript

import config from '#config';
export default function Footer() {
const {startYear: year0, siteAuthor} = config;
const year = new Date().getFullYear();
return <footer>{siteAuthor &&
<div>Copyright © {year>year0 ? `${year0}-${year}` : year} {siteAuthor} All rights reserved.</div>
}</footer>;
}