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