import { useState } from "react"; import ColorPicker from "../color-picker"; import { SwitchMiiInstructions } from "@/types"; import TypeSelector from "../type-selector"; 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(108); const [type, setType] = useState(0); return (

Head

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