// ui import { ToggleSwitch } from "components/ui"; // types import { Props } from "./types"; export const CustomCheckboxAttribute: React.FC = ({ attributeDetails, onChange, value, }) => { const handleUpdateCheckbox = (val: boolean | string) => onChange(val.toString()); return ( <> {attributeDetails.extra_settings.representation === "toggle_switch" ? ( ) : (
handleUpdateCheckbox(e.target.checked)} />
)} ); };