{"version":3,"file":"SmallToggleSwitch-BprVr9It.js","sources":["../../../app/javascript/components/common/ToggleSwitch/SmallToggleSwitch.tsx"],"sourcesContent":["import React from \"react\";\nimport \"./smallToggleSwitch.scss\";\n\ninterface SwitchProps {\n /**\n * Switch state\n */\n active?: boolean;\n setActive: (active: boolean) => void;\n disabled?: boolean;\n propHandle: (e: React.ChangeEvent) => void | null;\n}\n\nexport const Switch: React.VFC = ({\n active,\n setActive,\n disabled,\n propHandle,\n ...props\n}: SwitchProps): JSX.Element => {\n const handleToggle = () => setActive(!active);\n\n return (\n