import type { Tweaks, ThemeMode, FontSize, FeedbackTweak } from '../types' interface Props { tweaks: Tweaks update: (key: K, value: Tweaks[K]) => void onClose: () => void } function Seg({ tkey, options, tweaks, update }: { tkey: keyof Tweaks options: { value: string; label: string }[] tweaks: Tweaks update: Props['update'] }) { return (
{options.map((opt) => ( ))}
) } export default function TweaksPanel({ tweaks, update, onClose }: Props) { return (
Tweaks
Theme
Text size
Feedback
) }