mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 14:39:29 +02:00
21 lines
490 B
TypeScript
21 lines
490 B
TypeScript
"use client";
|
|
|
|
import React from "react";
|
|
import { Loader2 } from "lucide-react"; // Ensure you have lucide-react installed
|
|
|
|
interface LoaderProps {
|
|
height?: string;
|
|
}
|
|
|
|
const LoaderPlaceholder: React.FC<LoaderProps> = ({ height = "100px" }) => {
|
|
return (
|
|
<div
|
|
className="flex items-center justify-center w-full"
|
|
style={{ height }}
|
|
>
|
|
<Loader2 className="animate-spin" />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default LoaderPlaceholder;
|