1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-11 16:38:55 +00:00
conky/web/components/Footer.tsx

22 lines
637 B
TypeScript
Raw Normal View History

2024-04-11 11:02:27 -04:00
import getConfig from 'next/config'
2022-10-14 09:55:06 -05:00
import CopyleftIcon from './CopyleftIcon'
const Footer: React.FunctionComponent = () => {
2024-04-11 11:02:27 -04:00
const { publicRuntimeConfig } = getConfig()
const { modifiedDate, modifiedYear } = publicRuntimeConfig
2022-10-14 09:55:06 -05:00
return (
2024-04-22 14:13:56 +07:00
<div className="max-w-3xl mx-auto flex py-4 items-center">
<div className="px-2 lg:px-4">
2022-10-14 09:55:06 -05:00
<CopyleftIcon width={20} height={20} />
</div>
2024-04-22 14:13:56 +07:00
<div className="pl-1 pr-2 lg:pr-4 font-sans text-xs">
2024-04-11 11:02:27 -04:00
<p>
2024-04-22 14:13:56 +07:00
{modifiedYear} Conky developers, updated {new Date(modifiedDate).toLocaleString()}
2024-04-11 11:02:27 -04:00
</p>
2022-10-14 09:55:06 -05:00
</div>
</div>
)
}
export default Footer