"use client";
import { Card, CardContent } from "./Card";
import Button from "./Button";
const LoadingSpinner = ({ size = "md" }) => {
const sizeClasses = {
sm: "w-4 h-4",
md: "w-8 h-8",
lg: "w-12 h-12",
};
return (
);
};
const LoadingState = ({ message = "Loading...", className = "" }) => {
return (
);
};
const EmptyState = ({
icon,
title,
description,
actionLabel,
actionHref,
onAction,
className = "",
}) => {
return (
{title}
{description && {description}
}
{actionLabel && (actionHref || onAction) && (
)}
);
};
const ErrorState = ({
title = "Something went wrong",
description = "We encountered an error. Please try again.",
onRetry,
className = "",
}) => {
return (
{title}
{description}
{onRetry && (
)}
);
};
export { LoadingSpinner, LoadingState, EmptyState, ErrorState };