import React from 'react'; import Dropdown from '../Dropdown'; import { Config } from '../../types'; interface GeneralTabProps { config: Config; onChange: (updates: Partial) => void; } const GeneralTab: React.FC = ({ config, onChange }) => { return (
onChange({ title: e.target.value })} className="bg-white/10 p-3 rounded-lg w-full focus:outline-none focus:ring-2 focus:ring-cyan-400" />
onChange({ titleSize: e.target.value as string })} options={[ { value: 'tiny', label: 'Tiny' }, { value: 'small', label: 'Small' }, { value: 'medium', label: 'Medium' }, { value: 'large', label: 'Large' }, ]} />
onChange({ alignment: e.target.value as string })} options={[ { value: 'top', label: 'Top' }, { value: 'middle', label: 'Middle' }, { value: 'bottom', label: 'Bottom' }, ]} />
onChange({ tileSize: e.target.value as string })} options={[ { value: 'small', label: 'Small' }, { value: 'medium', label: 'Medium' }, { value: 'large', label: 'Large' }, ]} />
onChange({ horizontalAlignment: e.target.value as string })} options={[ { value: 'left', label: 'Left' }, { value: 'middle', label: 'Middle' }, { value: 'right', label: 'Right' }, ]} />
); }; export default GeneralTab;