import { useDevice } from "../App"; const MenuItemContent = ({ icon, shortcut, children, }: { icon?: JSX.Element; shortcut?: string; children: React.ReactNode; }) => { const device = useDevice(); return ( <>
{icon}
{children}
{shortcut && !device.isMobile && (
{shortcut}
)} ); }; export default MenuItemContent;