import styles from "../src/css/styles.module.css"; export interface VariationProps { linear: number; julia: number; popcorn: number; pdj: number; } export interface Props { title: String; variations: VariationProps; setVariations: (variations: VariationProps) => void; resetVariations: () => void; } export const VariationEditor = ({ title, variations, setVariations, resetVariations }: Props) => { const resetButton = ; return (

{title} {resetButton}

Linear: {variations.linear} setVariations({ ...variations, linear: Number(e.currentTarget.value) })} />
Julia: {variations.julia} setVariations({ ...variations, julia: Number(e.currentTarget.value) })} />
Popcorn: {variations.popcorn} setVariations({ ...variations, popcorn: Number(e.currentTarget.value) })} />
PDJ: {variations.pdj} setVariations({ ...variations, pdj: Number(e.currentTarget.value) })} />
); };