2022-11-04 21:44:29 +09:00
|
|
|
import config from '#config';
|
|
|
|
|
|
|
|
export default function Footer() {
|
|
|
|
const year = new Date().getFullYear();
|
2022-11-04 22:05:14 +09:00
|
|
|
const {site: {startYear: year0 = year, author} = {}} = config;
|
2022-11-04 21:44:29 +09:00
|
|
|
|
2022-11-04 22:05:14 +09:00
|
|
|
return <footer>{author &&
|
|
|
|
<div>Copyright © {year>year0 ? `${year0}-${year}` : year} {author} All rights reserved.</div>
|
2022-11-04 21:44:29 +09:00
|
|
|
}</footer>;
|
|
|
|
}
|