(isDragAccept, isDragReject, theme)
| 19 | }; |
| 20 | |
| 21 | function 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 | |
| 31 | function Dropzone(props) { |
| 32 | const { onDrop, accept, fullHeight, children, classes, style, theme } = props; |
nothing calls this directly
no outgoing calls
no test coverage detected