import clsx from "clsx"; import { useMemo } from "react"; import { EngineButtons } from "./EngineButtons"; import { SurveyElement } from "./engineTypes"; interface FeatureSelectionProps { element: SurveyElement; field: any; register: any; control: any; onSubmit: () => void; disabled: boolean; allowSkip: boolean; skipAction: () => void; autoSubmit: boolean; loading: boolean; } export default function FeatureSelection({ element, field, register, allowSkip, skipAction, autoSubmit, loading, }: FeatureSelectionProps) { const shuffledOptions = useMemo( () => (element.options ? getShuffledArray(element.options) : []), [element.options] ); return (