'use client'; import { Flex, ScrollArea, Text } from '@mantine/core'; import { IconHome, IconAdjustmentsHorizontal, IconHeadset, } from '@tabler/icons-react'; export function Navbar(props: any) { const handleSettings = (label: any) => { props.renderComponent(label); }; const handleKeyDown = (event: React.KeyboardEvent, label: string) => { if (event.key === 'Enter' || event.key === ' ') { handleSettings(label); } }; return ( <> handleSettings('Dashboard')} onKeyDown={(e) => handleKeyDown(e, 'Dashboard')} role="button" tabIndex={0} >  {' '} Dashboard handleSettings('Settings')} onKeyDown={(e) => handleKeyDown(e, 'Settings')} role="button" tabIndex={0} >  {' '} Settings handleSettings('Support')} onKeyDown={(e) => handleKeyDown(e, 'Support')} role="button" tabIndex={0} >  {' '} Support ); }