'use client'; import { memo } from 'react'; import type { ToothShapeKind } from '@/components/treatment/fdiToothMeta'; interface ToothGlyphProps { kind: ToothShapeKind; gradientId: string; selected: boolean; mirrored?: boolean; } /** Stylized single tooth for FDI chart (outline + radial fill). Crown above, root(s) below. */ export const ToothGlyph = memo(function ToothGlyph({ kind, gradientId, selected, mirrored, }: ToothGlyphProps) { const stroke = selected ? 'var(--color-primary)' : '#1e293b'; const strokeW = selected ? 2.4 : 1.35; const filter = selected ? 'drop-shadow(0 0 6px rgba(9, 169, 188, 0.65))' : undefined; const inner = () => { switch (kind) { case 'incisor': return ( <> ); case 'canine': return ( <> ); case 'premolar': return ( <> ); case 'molar': return ( <> ); default: return null; } }; return ( {inner()} ); });