import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import classNames from 'classnames';
function Switch({ checked, onChange, enableLabel = false, }) {
    return (_jsxs("div", { className: 'seam-switch-container', children: [enableLabel && (_jsx("label", { className: 'seam-switch-label', children: checked ? t.on : t.off })), _jsx("div", { className: classNames('seam-switch', {
                    'seam-switch-checked': checked,
                }), onClick: () => {
                    onChange(!checked);
                }, children: _jsx("div", { className: 'seam-switch-slider' }) })] }));
}
const t = {
    on: 'On',
    off: 'Off',
};
export default Switch;
//# sourceMappingURL=Switch.js.map