dasig-static/@dasig/components/Copyright.tsx
2026-01-30 11:48:35 +08:00

18 lines
350 B
TypeScript

import * as toml from 'toml'
import * as fs from 'fs'
const config = toml.parse(fs.readFileSync('configs/config.site.toml', 'utf8'))
interface Props {
year: string
name: string
}
export default (props: Props) => {
return (
<span>
Copyright © {config.copyright.year} {config.copyright.name} All Rights Reserved.
</span>
)
}