"use client"; import { SwitchMiiInstructions } from "@/types"; import { ChangeEvent } from "react"; interface Props { data: SwitchMiiInstructions["voice"]; onClick?: (e: ChangeEvent, label: string) => void; onClickTone?: (i: number) => void; } const VOICE_SETTINGS: string[] = ["Speed", "Pitch", "Depth", "Delivery"]; export default function VoiceViewer({ data, onClick, onClickTone }: Props) { return (
{VOICE_SETTINGS.map((label) => (
{ if (onClick) onClick(e, label); }} />
))}
{Array.from({ length: 6 }).map((_, i) => ( ))}
); }