(props)
| 18 | } |
| 19 | |
| 20 | export const SendDialogShell: React.FC<Props> = (props) => ( |
| 21 | <Dialog open onClose={props.onClose} maxWidth={props.maxWidth || "md"} fullWidth> |
| 22 | <DialogTitle>{props.title}</DialogTitle> |
| 23 | <DialogContent>{props.isComplete ? props.resultContent : props.children}</DialogContent> |
| 24 | <DialogActions> |
| 25 | {props.isComplete ? ( |
| 26 | <Button onClick={props.onClose}>{props.closeLabel}</Button> |
| 27 | ) : ( |
| 28 | <> |
| 29 | <Button onClick={props.onClose} disabled={props.sending}>{props.cancelLabel}</Button> |
| 30 | <Button |
| 31 | variant="contained" |
| 32 | onClick={props.onSend} |
| 33 | disabled={!props.canSend} |
| 34 | startIcon={props.sending ? <CircularProgress size={16} /> : null} |
| 35 | > |
| 36 | {props.sending ? props.sendingLabel : props.sendLabel} |
| 37 | </Button> |
| 38 | </> |
| 39 | )} |
| 40 | </DialogActions> |
| 41 | </Dialog> |
| 42 | ); |
nothing calls this directly
no outgoing calls
no test coverage detected