import { UnifiedModal } from '../common/UnifiedModal'; import { IMAGE_CANVAS_SHORTCUT_SECTIONS } from './ImageCanvasShortcutModel'; type ImageCanvasShortcutDialogViewProps = { open: boolean; onClose: () => void; }; export function ImageCanvasShortcutDialogView({ open, onClose, }: ImageCanvasShortcutDialogViewProps) { return (
{IMAGE_CANVAS_SHORTCUT_SECTIONS.map((section) => (

{section.title}

{section.items.map((item) => (
{item.action} {item.status === 'new' ? 新增 : null}
{item.keys.map((key, index) => ( {index > 0 ? ( ) : null} {key} ))}
))}
))}
); }