import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton"; import { CircularProgress, type ButtonProps } from "@mui/material"; import React from "react"; /** * A button that shows a indeterminate progress indicator if the {@link loading} * prop is set. * * The button is also disabled when in the loading state. */ export const LoadingButton: React.FC = ({ loading, disabled, color, sx, children, ...rest }) => loading ? ( ) : ( {children} );