mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
23 lines
685 B
TypeScript
23 lines
685 B
TypeScript
import { Row, Text } from '@umami/react-zen';
|
|
import { CURRENT_VERSION, HOMEPAGE_URL } from '@/lib/constants';
|
|
import type { WhiteLabel } from '@/lib/types';
|
|
|
|
export function ShareFooter({ whiteLabel }: { whiteLabel?: WhiteLabel }) {
|
|
if (whiteLabel) {
|
|
return (
|
|
<Row as="footer" paddingY="6" justifyContent="flex-end">
|
|
<a href={whiteLabel.url} target="_blank">
|
|
<Text weight="bold">{whiteLabel.name}</Text>
|
|
</a>
|
|
</Row>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<Row as="footer" paddingY="6" justifyContent="flex-end">
|
|
<a href={HOMEPAGE_URL} target="_blank">
|
|
<Text weight="bold">umami</Text> {`v${CURRENT_VERSION}`}
|
|
</a>
|
|
</Row>
|
|
);
|
|
}
|