import { Checkbox, Stack, Typography } from '@mui/material'; import { ThemeMode } from '@centreon/ui-context'; import { equals, isNil } from 'ramda'; import { forwardRef, type ReactElement, type RefObject } from 'react'; import { makeStyles } from 'tss-react/mui'; const useStyles = makeStyles()((theme) => ({ checkbox: { marginRight: theme.spacing(1), padding: 0 }, container: { '&:hover, &.Mui-selected, &.Mui-selected:hover': { background: equals(theme.palette.mode, ThemeMode.dark) ? theme.palette.primary.dark : theme.palette.primary.light, color: equals(theme.palette.mode, ThemeMode.dark) ? theme.palette.common.white : theme.palette.primary.main }, alignItems: 'center', display: 'flex' } })); interface Props { checkboxSelected?: boolean; children: string | ReactElement; thumbnailUrl?: string; } const Option = forwardRef( ({ children, checkboxSelected, thumbnailUrl }: Props, ref): ReactElement => { const { classes } = useStyles(); return (