Files
my-links/inertia/pages/shared.tsx
2025-12-10 05:12:14 +01:00

37 lines
894 B
TypeScript

import { SharedCollection } from '#shared/types/dto';
import { Flex, Text } from '@mantine/core';
import { useTranslation } from 'react-i18next';
import { LinkList } from '~/components/dashboard/link/list/link_list';
interface SharedPageProps {
activeCollection: SharedCollection;
}
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>
</>
);
}