Filtering services using search bar

This commit is contained in:
ajnart
2022-08-24 18:44:11 +02:00
parent 48a5b4d4fd
commit 7d953e4c41
2 changed files with 56 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
import { Anchor, Avatar, Group, Text } from '@mantine/core';
interface smallServiceItem {
label: string;
icon?: string;
url?: string;
}
export default function SmallServiceItem(props: any) {
const { service }: { service: smallServiceItem } = props;
// TODO : Use Next/link
return (
<Group>
{service.icon && <Avatar src={service.icon} />}
<Text>{service.label}</Text>
</Group>
);
}