import React from 'react' import { BsInfoCircle } from 'react-icons/bs' import styles from './ModalToggle.module.css' interface Props { checked: boolean onChange: (checked: boolean) => void label: string helpText?: string helpLink?: string className?: string } /** * Componente de toggle/checkbox para modales * Estilo StreamYard: switch + texto + icono de ayuda opcional */ export const ModalToggle: React.FC = ({ checked, onChange, label, helpText, helpLink, className = '' }) => { return (
{(helpText || helpLink) && ( )}
) } export default ModalToggle