mirror of
https://github.com/andwati/cymelle.git
synced 2026-11-03 15:32:15 +00:00
22 lines
864 B
TypeScript
22 lines
864 B
TypeScript
type LoadingStateProps = {
|
|
title?: string;
|
|
};
|
|
|
|
export function LoadingState({
|
|
title = "Loading",
|
|
}: LoadingStateProps) {
|
|
return (
|
|
<div className="rounded-lg border bg-card p-6 text-card-foreground shadow-sm" aria-label={title}>
|
|
<div className="space-y-3">
|
|
<div className="h-4 w-36 animate-pulse rounded-md bg-muted"/>
|
|
<div className="h-8 w-full animate-pulse rounded-md bg-muted"/>
|
|
<div className="grid gap-3 md:grid-cols-3">
|
|
<div className="h-16 animate-pulse rounded-md bg-muted"/>
|
|
<div className="h-16 animate-pulse rounded-md bg-muted"/>
|
|
<div className="h-16 animate-pulse rounded-md bg-muted"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|