1 import type { InputButtonProps } from '@proton/components';
2 import { InputButton, Tooltip } from '@proton/components';
3 import clsx from '@proton/utils/clsx';
5 interface Props extends Omit<InputButtonProps, 'title'> {
8 dayAbbreviation: string;
12 const DayCheckbox = ({ id, dayAbbreviation, dayLong, disabled = false, ...rest }: Props) => {
14 <Tooltip title={dayLong}>
15 <div className={clsx(disabled && 'cursor-default')}>
17 labelProps={{ className: clsx('mt-2', disabled && 'pointer-events-none') }}
18 ButtonLikeProps={{ className: 'px-0' }}
21 <span aria-hidden="true">{dayAbbreviation}</span>
22 <span className="sr-only">{dayLong}</span>
29 export default DayCheckbox;