switch to nx monorepo

This commit is contained in:
Philipinho
2024-01-09 18:58:26 +01:00
parent e1bb2632b8
commit 093e634c0b
273 changed files with 11419 additions and 31 deletions

View File

@ -0,0 +1,43 @@
import { rem } from '@mantine/core';
import { Spotlight, SpotlightActionData } from '@mantine/spotlight';
import { IconHome, IconDashboard, IconSettings, IconSearch } from '@tabler/icons-react';
const actions: SpotlightActionData[] = [
{
id: 'home',
label: 'Home',
description: 'Get to home page',
onClick: () => console.log('Home'),
leftSection: <IconHome style={{ width: rem(24), height: rem(24) }} stroke={1.5} />,
},
{
id: 'dashboard',
label: 'Dashboard',
description: 'Get full information about current system status',
onClick: () => console.log('Dashboard'),
leftSection: <IconDashboard style={{ width: rem(24), height: rem(24) }} stroke={1.5} />,
},
{
id: 'settings',
label: 'Settings',
description: 'Account settings and workspace management',
onClick: () => console.log('Settings'),
leftSection: <IconSettings style={{ width: rem(24), height: rem(24) }} stroke={1.5} />,
},
];
export function SearchSpotlight() {
return (
<>
<Spotlight
actions={actions}
nothingFound="Nothing found..."
highlightQuery
searchProps={{
leftSection: <IconSearch style={{ width: rem(20), height: rem(20) }} stroke={1.5} />,
placeholder: 'Search...',
}}
/>
</>
);
}