mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 22:49:27 +02:00
22 lines
490 B
TypeScript
22 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;
|