Files
misode.github.io/src/app/components/Footer.tsx
2025-01-04 19:05:23 +01:00

25 lines
739 B
TypeScript

import { useLocale } from '../contexts/index.js'
import { SOURCE_REPO_URL } from '../Utils.js'
import { Octicon } from './index.js'
interface Props {
donate?: boolean,
}
export function Footer({ donate }: Props) {
const { locale } = useLocale()
return <footer>
<p>
<span>{locale('developed_by')} <a href="https://github.com/misode" target="_blank" rel="noreferrer">Misode</a></span>
</p>
{donate !== false && <p class="donate">
{Octicon.heart}
<a href="https://ko-fi.com/misode" target="_blank" rel="noreferrer">{locale('donate')}</a>
</p>}
<p>
{Octicon.mark_github}
<span>{locale('source_code_on')} <a href={SOURCE_REPO_URL} target="_blank" rel="noreferrer">{locale('github')}</a></span>
</p>
</footer>
}