import clsx from "clsx"; import { type ComponentPropsWithoutRef, PropsWithChildren } from "react"; import { Icon } from "../../atoms/icon/Icon.js"; export interface LoaderProps extends ComponentPropsWithoutRef<"div"> { isActive?: boolean; color?: string; icon?: string; iconset?: string; } export function Loader({ isActive, color = "text-primary", icon = "loader", iconset, className = "", ...props }: PropsWithChildren) { if (isActive) { return (
); } return null; }