Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
55 lines
1.8 KiB
TypeScript
55 lines
1.8 KiB
TypeScript
import Divider from '@mui/material/Divider';
|
|
import Paper from '@mui/material/Paper';
|
|
import MenuList from '@mui/material/MenuList';
|
|
import MenuItem from '@mui/material/MenuItem';
|
|
import ListItemText from '@mui/material/ListItemText';
|
|
import ListItemIcon from '@mui/material/ListItemIcon';
|
|
import Typography from '@mui/material/Typography';
|
|
import ContentCut from '@mui/icons-material/ContentCut';
|
|
import ContentCopy from '@mui/icons-material/ContentCopy';
|
|
import ContentPaste from '@mui/icons-material/ContentPaste';
|
|
import Cloud from '@mui/icons-material/Cloud';
|
|
|
|
export default function IconMenu() {
|
|
return (
|
|
<Paper sx={{ width: 320, maxWidth: '100%' }}>
|
|
<MenuList>
|
|
<MenuItem>
|
|
<ListItemIcon>
|
|
<ContentCut fontSize="small" />
|
|
</ListItemIcon>
|
|
<ListItemText>Cut</ListItemText>
|
|
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
|
|
⌘X
|
|
</Typography>
|
|
</MenuItem>
|
|
<MenuItem>
|
|
<ListItemIcon>
|
|
<ContentCopy fontSize="small" />
|
|
</ListItemIcon>
|
|
<ListItemText>Copy</ListItemText>
|
|
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
|
|
⌘C
|
|
</Typography>
|
|
</MenuItem>
|
|
<MenuItem>
|
|
<ListItemIcon>
|
|
<ContentPaste fontSize="small" />
|
|
</ListItemIcon>
|
|
<ListItemText>Paste</ListItemText>
|
|
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
|
|
⌘V
|
|
</Typography>
|
|
</MenuItem>
|
|
<Divider />
|
|
<MenuItem>
|
|
<ListItemIcon>
|
|
<Cloud fontSize="small" />
|
|
</ListItemIcon>
|
|
<ListItemText>Web Clipboard</ListItemText>
|
|
</MenuItem>
|
|
</MenuList>
|
|
</Paper>
|
|
);
|
|
}
|