import { PiFileAudio } from 'react-icons/pi'; import { MdDelete, MdVpnKey } from 'react-icons/md'; import type { ReactNode } from 'react'; export interface KeyInputProps { sequence: number; name: string; value: string; isValidKey?: boolean; onSetName: (name: string) => void; onSetValue: (value: string) => void; onDelete: () => void; quality?: string; onSetQuality?: (quality: string) => void; nameLabel?: ReactNode; valueLabel?: ReactNode; qualityLabel?: ReactNode; namePlaceholder?: string; valuePlaceholder?: string; qualityPlaceholder?: string; } export function KeyInput(props: KeyInputProps) { const { nameLabel, valueLabel, qualityLabel, namePlaceholder, qualityPlaceholder, valuePlaceholder, sequence, name, quality, value, onSetName, onSetValue, onDelete, onSetQuality, isValidKey, } = props; return (