import { Divider, Group } from '@mantine/core'; import type { SearchShortcut } from 'types'; import HintItem from './HintItem'; function HelpSection({ name, items }: { name: string; items: SearchShortcut[] }) { return ( <>

{name}

{items ?.toSorted((a: SearchShortcut, b: SearchShortcut) => a.command > b.command ? 1 : -1, ) .map((item: SearchShortcut) => ( ))} ); } export default HelpSection;