import { jsxs, jsx } from 'react/jsx-runtime';

const ToggleSwitch = ({ selected = "text", firstButton = 'File', secondButton = 'File', handleClick }) => {
    return (jsxs("div", { className: "toggle-container", children: [jsx("button", { className: `toggle-button ${selected === firstButton ? "active" : ""}`, onClick: () => handleClick(firstButton), children: firstButton }), jsx("button", { className: `toggle-button ${selected === secondButton ? "active" : ""}`, onClick: () => handleClick(secondButton), children: secondButton })] }));
};

export { ToggleSwitch as default };
//# sourceMappingURL=ToggleSwitch.js.map
