/* eslint-disable jsx-a11y/mouse-events-have-key-events */ import * as React from 'react'; import { IconButton, Typography, makeStyles, // eslint-disable-next-line no-unused-vars Theme, } from '@material-ui/core'; import { combine } from '../utils'; const useStyles = makeStyles((theme: Theme) => ({ leftBorderRadius: { borderRadius: '50% 0 0 50%', }, rightBorderRadius: { borderRadius: '0 50% 50% 0', }, buttonContainer: { display: 'flex', }, button: { height: 36, width: 36, padding: 0, }, buttonText: { lineHeight: 1.6, }, outlined: { border: `1px solid ${theme.palette.primary.dark}`, }, filled: { '&:hover': { backgroundColor: theme.palette.primary.dark, }, backgroundColor: theme.palette.primary.dark, }, highlighted: { backgroundColor: theme.palette.action.hover, }, contrast: { color: theme.palette.primary.contrastText, }, })); interface DayProps { filled?: boolean; outlined?: boolean; highlighted?: boolean; disabled?: boolean; startOfRange?: boolean; endOfRange?: boolean; onClick?: () => void; onHover?: () => void; value: number | string; } const Day: React.FunctionComponent = ({ startOfRange, endOfRange, disabled, highlighted, outlined, filled, onClick, onHover, value, }: DayProps) => { const classes = useStyles(); return (
{value}
); }; export default Day;