2022-06-25 18:04:25 +02:00
|
|
|
import React from "react";
|
2023-09-30 19:44:21 +02:00
|
|
|
import { SpinnerIcon } from "../../icons/Spinner";
|
2022-06-25 18:04:25 +02:00
|
|
|
|
|
|
|
|
interface SpinnerProps {
|
|
|
|
|
className?: string;
|
2023-02-20 23:50:13 +01:00
|
|
|
iconClassName?: string;
|
2022-06-25 18:04:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const Spinner: React.FC<SpinnerProps> = ({
|
|
|
|
|
className = "",
|
2023-02-20 23:50:13 +01:00
|
|
|
iconClassName = "h-16 w-16",
|
2022-06-25 18:04:25 +02:00
|
|
|
}) => (
|
|
|
|
|
<div className={`flex justify-center ${className}`}>
|
2023-02-20 23:50:13 +01:00
|
|
|
<SpinnerIcon
|
|
|
|
|
className={`${iconClassName} text-gray-300 dark:text-gray-700 fill-green-500`}
|
|
|
|
|
/>
|
2022-06-25 18:04:25 +02:00
|
|
|
</div>
|
|
|
|
|
);
|