import { Button, Card, CardContent, Skeleton, Typography } from "poyraz-ui/atoms"; import { Alert, AlertDescription, AlertTitle } from "poyraz-ui/molecules"; import { Ban, CircleAlert, Inbox } from "lucide-react"; import type { ReactNode } from "react"; type FeedbackStateProps = { action?: ReactNode; description: string; title: string; variant: "empty" | "error" | "forbidden"; }; export function FeedbackState({ action, description, title, variant }: FeedbackStateProps) { if (variant === "empty") { return (
{title} {description}
{action}
); } const forbidden = variant === "forbidden"; return ( ); } export function LoadingState({ label = "İçerik yükleniyor" }: { label?: string }) { return (
{label}
{Array.from({ length: 3 }).map((_, index) => ( ))}
); } export function RetryAction({ onClick }: { onClick: () => void }) { return ( ); }