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

Function LoadingButton

src/components/ui/LoadingButton.tsx:10–16  ·  view source on GitHub ↗
({ loading, loadingText, children, disabled, ...props })

Source from the content-addressed store, hash-verified

8}
9
10export const LoadingButton: React.FC<LoadingButtonProps> = ({ loading, loadingText, children, disabled, ...props }) => {
11 return (
12 <Button {...props} disabled={disabled || loading} startIcon={loading ? <CircularProgress size={16} /> : props.startIcon}>
13 {loading && loadingText ? loadingText : children}
14 </Button>
15 );
16};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected