MCPcopy Create free account
hub / github.com/dunky11/react-saas-template / getColor

Function getColor

src/shared/components/Dropzone.js:21–29  ·  view source on GitHub ↗
(isDragAccept, isDragReject, theme)

Source from the content-addressed store, hash-verified

19};
20
21function getColor(isDragAccept, isDragReject, theme) {
22 if (isDragAccept) {
23 return theme.palette.success.main;
24 }
25 if (isDragReject) {
26 return theme.palette.error.dark;
27 }
28 return theme.palette.common.black;
29}
30
31function Dropzone(props) {
32 const { onDrop, accept, fullHeight, children, classes, style, theme } = props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected