import { Database, PanelRight, SlidersHorizontal, type LucideIcon } from 'lucide-react'; export type RightSidebarView = 'inspector' | 'controls' | 'data'; const VIEWS: ReadonlyArray<{ value: RightSidebarView; label: string; icon: LucideIcon; }> = [ { value: 'inspector', label: '检查器', icon: PanelRight }, { value: 'controls', label: '控制台', icon: SlidersHorizontal }, { value: 'data', label: '数据录制', icon: Database }, ]; export function RightSidebarTabs({ value, onChange, }: { value: RightSidebarView; onChange: (value: RightSidebarView) => void; }) { return (
{VIEWS.map((view, index) => { const Icon = view.icon; const selected = value === view.value; return ( ); })}
); }