mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
37 lines
936 B
TypeScript
37 lines
936 B
TypeScript
import { Flex, Text } from '@mantine/core';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { LinkList } from '~/components/dashboard/link/list/link_list';
|
|
import type { CollectionWithLinks, PublicUser } from '~/types/app';
|
|
|
|
interface SharedPageProps {
|
|
activeCollection: CollectionWithLinks & { author: PublicUser };
|
|
}
|
|
|
|
export default function SharedPage({ activeCollection }: SharedPageProps) {
|
|
const { t } = useTranslation('common');
|
|
return (
|
|
<>
|
|
<Flex direction="column">
|
|
<Text size="xl">{activeCollection.name}</Text>
|
|
<Text size="sm" c="dimmed">
|
|
{activeCollection.description}
|
|
</Text>
|
|
<Flex justify="flex-end">
|
|
<Text
|
|
size="sm"
|
|
c="dimmed"
|
|
mt="md"
|
|
mb="lg"
|
|
dangerouslySetInnerHTML={{
|
|
__html: t('collection.managed-by', {
|
|
name: activeCollection.author.fullname,
|
|
}),
|
|
}}
|
|
/>
|
|
</Flex>
|
|
<LinkList hideMenu />
|
|
</Flex>
|
|
</>
|
|
);
|
|
}
|