import { useState } from "react"; import ColorPicker from "../color-picker"; import { SwitchMiiInstructions } from "@/types"; interface Props { instructions: React.RefObject; } const COLORS = ["FFD8BA", "FFD5AC", "FEC1A4", "FEC68F", "FEB089", "FEBA6B", "F39866", "E89854", "E37E3F", "B45627", "914220", "59371F", "662D16", "392D1E"]; export default function HeadTab({ instructions }: Props) { const [color, setColor] = useState(instructions.current.head.skinColor ?? 109); return ( <>

Head

{ setColor(i); instructions.current.head.skinColor = i; }} />
{COLORS.map((hex, i) => ( ))}
); }