'use client'; import { useState } from 'react'; import { cn } from '@/lib/utils'; import { ExpressionPanel } from './ExpressionPanel'; import { GraphPanel } from './GraphPanel'; type Tab = 'calc' | 'graph'; export default function Calculator() { const [tab, setTab] = useState('calc'); return (
{/* Mobile tab switcher — hidden on lg+ */}
{(['calc', 'graph'] as Tab[]).map((t) => ( ))}
{/* Main layout — side-by-side on lg, tabbed on mobile */}
{/* Expression panel */}
{/* Graph panel */}
); }