🔀 Merge pull request #368 from ajnart/ajnart/issue349

 Search and open services with the search bar
This commit is contained in:
Thomas Camlong
2022-08-25 11:41:08 +02:00
committed by GitHub
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>
);
}