MCPcopy Create free account
hub / github.com/ChurchApps/B1Admin / SendDialogShell

Function SendDialogShell

src/groups/components/SendDialogShell.tsx:20–42  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

18}
19
20export 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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected