import { Group, Text } from '@mantine/core'; import type { Theme } from 'types'; function ThemeMiniCard({ allThemes, item, }: { allThemes: Theme[]; item: number; }) { const theme = allThemes.find((theme: Theme) => theme.id === item); return ( {allThemes.find((theme: Theme) => theme.id === item)?.name} ); } export default ThemeMiniCard;