import * as React from 'react'
import { HamburgerMenuIcon } from '@radix-ui/react-icons'
import { Trigger, Content } from '@radix-ui/react-dropdown-menu'
import { memo } from 'react'
import {
FloatingContainer,
DropdownMenuRoot,
MenuContent,
IconButton,
breakpoints,
DropdownMenuButton,
DropdownMenuSubMenu,
DropdownMenuDivider,
} from '../shared'
import state from 'state'
import { commandKey } from 'utils'
const handleNew = () => state.send('CREATED_NEW_PROJECT')
const handleSave = () => state.send('SAVED')
const handleLoad = () => state.send('LOADED_FROM_FILE_STSTEM')
const toggleDarkMode = () => state.send('TOGGLED_DARK_MODE')
function Menu() {
return (
New Project
{commandKey()}
N
Open...
{commandKey()}
L
Save
{commandKey()}
S
Save As...
⇧
{commandKey()}
S
)
}
export default memo(Menu)
function RecentFiles() {
return (
Project A
Project B
Project C
)
}
function Preferences() {
return (
Toggle Dark Mode
⇧
{commandKey()}
D
)
}