import * as React from 'react';
import { useMemo } from 'react';
export default function Switch({ checked, id, onClick, text, }) {
    const buttonId = useMemo(() => 'id_' + Math.floor(Math.random() * 10000), []);
    return (React.createElement("div", { className: 'switch', id: id },
        React.createElement("label", { htmlFor: buttonId }, text),
        React.createElement("button", { "aria-checked": checked, id: buttonId, onClick: onClick, role: 'switch', type: 'button' },
            React.createElement("span", null))));
}
//# sourceMappingURL=Switch.js.map