Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

479 B
Raw Blame
import { useSearchParams } from 'react-router'
import { cn } from '~/utils/generic'
import Loader from '~/ui/Loader'

export const LoaderView = () => {
  const [searchParams] = useSearchParams()

  const isEmbedded = searchParams.get('embedded') === 'true'

  return (
    <div
      className={cn('flex flex-col bg-gray-50 dark:bg-slate-950', {
        'min-h-including-header': !isEmbedded,
        'min-h-screen': isEmbedded,
      })}
    >
      <Loader />
    </div>
  )
}