add suspense and skeletons to order details

This commit is contained in:
tedraykov
2024-06-20 14:45:11 +03:00
parent 8749b8aaec
commit c141a3f56a
3 changed files with 40 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
import { VariantProps, tv } from 'tailwind-variants';
const skeleton = tv({
base: 'animate-pulse rounded bg-gray-100 w-full h-6'
});
interface SkeletonProps extends VariantProps<typeof skeleton> {
className?: string;
}
export default function Skeleton({ className }: SkeletonProps) {
return <div className={skeleton({ className })} />;
}