import React, { useMemo } from "react";
import Button from "../Button";
var TypeEnum;
(function (TypeEnum) {
    TypeEnum["ENABLED"] = "main";
    TypeEnum["DISABLED"] = "color";
})(TypeEnum || (TypeEnum = {}));
const Toggle = ({ checked = true, ...buttonProps }) => {
    const type = useMemo(() => (checked ? TypeEnum.ENABLED : TypeEnum.DISABLED), [checked]);
    return React.createElement(Button, { variant: type, outline: type === TypeEnum.ENABLED, ...buttonProps });
};
export default Toggle;
//# sourceMappingURL=index.js.map