diff --git a/packages/web/src/components/ui/Mascot.tsx b/packages/web/src/components/ui/Mascot.tsx index 0209b111..01bc0087 100644 --- a/packages/web/src/components/ui/Mascot.tsx +++ b/packages/web/src/components/ui/Mascot.tsx @@ -15,9 +15,15 @@ interface MascotProps { className?: string; } -function IdleSvg({ palette, gradientId }: { palette: typeof MASCOT_PALETTES.idle; gradientId: string }) { +interface SvgProps { + palette: (typeof MASCOT_PALETTES)[MascotState]; + gradientId: string; + svgRef: React.RefObject; +} + +function IdleSvg({ palette, gradientId, svgRef }: SvgProps) { return ( -
- {state === 'idle' && } - {state === 'sleeping' && } - {state === 'excited' && } - {state === 'lonely' && } + {state === 'idle' && } + {state === 'sleeping' && } + {state === 'excited' && } + {state === 'lonely' && } {state === 'sleeping' && (