MCPcopy Create free account
hub / github.com/flatlogic/react-material-admin / Dot

Function Dot

src/components/Sidebar/components/Dot.js:24–42  ·  view source on GitHub ↗
({ size = 'small', color, style })

Source from the content-addressed store, hash-verified

22}));
23
24export default function Dot({ size = 'small', color, style }) {
25 let classes = useStyles();
26 let theme = useTheme();
27
28 return (
29 <div
30 className={classnames(classes.dotBase, {
31 [classes.dotMedium]: size === 'medium',
32 [classes.dotBase]: size === 'small',
33 [classes.dotLarge]: size === 'large',
34 })}
35 style={{
36 backgroundColor:
37 color && theme.palette[color] && theme.palette[color].main,
38 ...style,
39 }}
40 />
41 );
42}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected