import React from 'react';
import { BoxDivProps, SilkeBox } from '../silke-box';
import './silke-loader.scss';
import { SilkeTextSmall } from '../silke-text';
interface SilkeLoaderProps extends BoxDivProps {
message?: string;
randomGenerator?: () => string;
style?: React.CSSProperties;
/**
* Stops the loader animation on the vev logo
*/
stop?: boolean;
}
export function SilkeLoader({
message,
randomGenerator,
size,
stop,
style,
...rest
}: SilkeLoaderProps) {
return (
{message && {message}}
{randomGenerator && {randomGenerator()}}
);
}
export function LoaderSVG({ stop, style }: { stop?: boolean; style?: React.CSSProperties }) {
// These are not needed for x-mas style uncomment after December
let cl = 'loader';
if (stop) cl += ' stop';
return (
);
}