UNPKG

@abbl/material-calendar

Version:

Calendar component build with React and Material-UI

24 lines 728 B
import { makeStyles } from '@material-ui/core'; import React from 'react'; var useStyles = makeStyles(function (theme) { return ({ dot: { borderRadius: '50%', backgroundColor: theme.palette.primary.main, display: 'inline-block', marginLeft: 2, marginRight: 2, }, }); }); export default function MonthEventDot(props) { var classes = useStyles(props); function getSize() { if (props.size) { if (props.size === 'large') { return 12; } } return 8; } return React.createElement("div", { className: classes.dot, style: { width: getSize(), height: getSize() } }); } //# sourceMappingURL=MonthEventDot.js.map