({ title, onReset }: SectionHeaderProps)
| 36 | } |
| 37 | |
| 38 | export function SectionHeader({ title, onReset }: SectionHeaderProps) { |
| 39 | return ( |
| 40 | <div className="flex items-center justify-between mb-2"> |
| 41 | <h2 className="text-base font-semibold text-surface-100">{title}</h2> |
| 42 | {onReset && ( |
| 43 | <button |
| 44 | onClick={onReset} |
| 45 | className="text-xs text-surface-400 hover:text-surface-200 transition-colors" |
| 46 | > |
| 47 | Reset to defaults |
| 48 | </button> |
| 49 | )} |
| 50 | </div> |
| 51 | ); |
| 52 | } |
| 53 | |
| 54 | interface ToggleProps { |
| 55 | checked: boolean; |
nothing calls this directly
no outgoing calls
no test coverage detected