Files
homarr/src/components/AppShelf/SmallServiceItem.tsx
Jannes Vandepitte 4db9dba2f4 lint
2022-08-26 16:47:26 +02:00

19 lines
409 B
TypeScript

import { 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>
);
}