mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 13:11:02 +00:00
18 lines
438 B
TypeScript
18 lines
438 B
TypeScript
import React from "react";
|
|
import { SpinnerIcon } from "../../icons/Spinner";
|
|
|
|
interface SpinnerProps {
|
|
className?: string;
|
|
iconClassName?: string;
|
|
}
|
|
|
|
export const Spinner: React.FC<SpinnerProps> = ({
|
|
className = "",
|
|
iconClassName = "h-16 w-16",
|
|
}) => (
|
|
<div className={`flex justify-center ${className}`}>
|
|
<SpinnerIcon
|
|
className={`${iconClassName} text-gray-300 dark:text-gray-700 fill-green-500`}
|
|
/>
|
|
</div>
|
|
);
|