import type { DiagramSettings } from '@diagram/settings' import { COLOR_SCHEMES } from '@diagram/relations' interface Props { settings: DiagramSettings onChange: (patch: Partial) => void onClose: () => void } export function SettingsDialog({ settings, onChange, onClose }: Props): JSX.Element { return (
e.stopPropagation()}>

Diagram settings

onChange({ gridSize: Number(e.target.value) || 16 })} />
onChange({ snapToGrid: e.target.checked })} />
onChange({ showGrid: e.target.checked })} />
onChange({ jumpover: e.target.checked })} />
) }