Files
Homarr/src/components/layout/header/SmallAppItem.tsx
2023-01-06 12:23:54 +09:00

18 lines
351 B
TypeScript

import { Avatar, Group, Text } from '@mantine/core';
interface smallAppItem {
label: string;
icon?: string;
url?: string;
}
export default function SmallAppItem(props: any) {
const { app }: { app: smallAppItem } = props;
return (
<Group>
{app.icon && <Avatar src={app.icon} />}
<Text>{app.label}</Text>
</Group>
);
}