import React from 'react'; export const SplashLoader = ({ text = 'Loading' }: { text?: string }) => { const [, forceRender] = React.useState(false); React.useEffect(() => { const interval = setInterval(() => { forceRender((x) => !x); }, 100); return () => clearInterval(interval); }, []); return (
{new Array(25).fill(null).map((_, i) => { return (
0.75 ? 1 : 0, }} /> ); })}
{text}
); };