import React from 'react'; import { Box, Typography, useTheme } from '@mui/material'; import { useMediaQuery } from '@mui/material'; import MaleIcon from '@mui/icons-material/Male'; import FemaleIcon from '@mui/icons-material/Female'; import PeopleIcon from '@mui/icons-material/People'; interface GenderButtonProps { selected: boolean; onClick: () => void; icon: 'male' | 'female' | 'both'; label: string; } export const GenderButton: React.FC = ({ selected, onClick, icon, label }) => { const theme = useTheme(); const isMobile = useMediaQuery(theme.breakpoints.down('sm')); const getIcon = () => { switch (icon) { case 'male': return ; case 'female': return ; case 'both': return ; default: return null; } }; return ( {getIcon()} {label} ); };