import { ReactNode } from "react";

interface ModalLoadingSpinnerProps {
	label?: string;
}

export function ModalLoadingSpinner({
	label,
}: ModalLoadingSpinnerProps): React.JSX.Element {
	return (
		<div className="kiro-modal-loading-spinner">
			<i className="codicon codicon-loading codicon-modifier-spin" />
			{label || "Loading..."}
		</div>
	);
}
