Files
blitzkit/packages/website/src/pages/[...locale]/tools/gallery/_index.tsx
T

31 lines
995 B
TypeScript
Raw Normal View History

2024-10-25 10:51:53 -05:00
import { CalendarIcon } from '@radix-ui/react-icons';
2024-10-25 10:49:11 -05:00
import { Callout, Flex } from '@radix-ui/themes';
2024-12-27 12:38:38 -06:00
import { GalleryList, type Avatar } from '../../../../components/Gallery/List';
import { GallerySearch } from '../../../../components/Gallery/Search';
import { PageWrapper } from '../../../../components/PageWrapper';
import { GalleryEphemeral } from '../../../../stores/galleryEphemeral';
2024-10-24 17:32:46 -05:00
interface PageProps {
avatars: Avatar[];
2024-10-25 10:49:11 -05:00
lastUpdated: string;
2024-10-24 17:32:46 -05:00
}
2024-10-25 10:49:11 -05:00
export function Page({ avatars, lastUpdated }: PageProps) {
2024-10-24 17:32:46 -05:00
return (
2024-11-24 20:39:21 -06:00
<PageWrapper maxWidth="80rem" color="gold">
2024-10-25 10:49:11 -05:00
<Flex justify="center">
<Callout.Root size="1">
<Callout.Icon>
2024-10-25 10:51:53 -05:00
<CalendarIcon />
2024-10-25 10:49:11 -05:00
</Callout.Icon>
<Callout.Text>Last updated on {lastUpdated}</Callout.Text>
</Callout.Root>
</Flex>
2024-10-24 18:21:37 -05:00
<GalleryEphemeral.Provider>
<GallerySearch />
<GalleryList avatars={avatars} />
</GalleryEphemeral.Provider>
</PageWrapper>
2024-10-24 17:32:46 -05:00
);
}