import { cn } from "~/design-system/utils/cn";
interface StatusDotProps {
status: "cached" | "fetching" | "idle" | "error";
className?: string;
}
/**
* Status indicator dot for showing cache/fetching state.
*
* Used in navigation and data tables to indicate:
* - cached: Data is available in cache (green)
* - fetching: Data is currently loading (amber, animated)
* - idle: No active request (neutral)
* - error: Request failed (red)
*/
export function StatusDot({ status, className }: StatusDotProps) {
return (
);
}
/**
* Status dot with label for accessibility
*/
export function StatusDotWithLabel({
status,
label,
className,
}: StatusDotProps & { label: string }) {
return (
{label}
);
}