import React from 'react' import { SiGmail } from 'react-icons/si' import { MdEmail } from 'react-icons/md' import { FaFacebookMessenger } from 'react-icons/fa' import styles from './ModalShareButtons.module.css' interface ShareButton { icon: React.ReactNode label: string onClick: () => void } interface Props { onGmail?: () => void onEmail?: () => void onMessenger?: () => void customButtons?: ShareButton[] className?: string } /** * Componente de botones de compartir para modales * Estilo StreamYard: icono + texto, fondo gris claro, hover azul */ export const ModalShareButtons: React.FC = ({ onGmail, onEmail, onMessenger, customButtons, className = '' }) => { const defaultButtons: ShareButton[] = [ ...(onGmail ? [{ icon: , label: 'Gmail', onClick: onGmail }] : []), ...(onEmail ? [{ icon: , label: 'Correo electrónico', onClick: onEmail }] : []), ...(onMessenger ? [{ icon: , label: 'Messenger', onClick: onMessenger }] : []) ] const buttons = customButtons || defaultButtons if (buttons.length === 0) return null return (
{buttons.map((button, index) => ( ))}
) } export default ModalShareButtons