import * as React from 'react' import { SettingsForm } from '../components/SettingsForm' import {Config, defaultConfig, NATURAL_KEY_WIDTHS, RANGES, SCALE_FACTORS} from '../../../common/config' import { useMidi } from '../hooks/midi' import { useForm } from '../hooks/form' interface SettingsPageProps { params: URLSearchParams } const SettingsPage: React.FC = ({ params }) => { const { handleAction } = useForm() const { midiAccess, lastStateChangeTimestamp } = useMidi() const defaultValues = Object.entries(defaultConfig).reduce( (theConfig, [key, value]) => ({ ...theConfig, [key]: params.get(key) || value }), {} as Config ) return (

Settings

) } export default SettingsPage