import { LuLoaderCircle } from "react-icons/lu"; import { type ButtonProps, Button as UIButton } from "./ui/button"; type Props = ButtonProps & { isLoading: boolean; "aria-label"?: string; }; export const LoadingButton = ({ isLoading, ...props }: Props) => { return ( {isLoading ? ( ) : ( props.children )} ); };