Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

528 B
Raw Blame
import React from 'react'
import classNames from 'classnames'

export function ReportLayout({
  children,
  testId,
  className
}: {
  children: React.ReactNode
  testId?: string
  className?: string
}) {
  return (
    <div
      data-testid={testId}
      className={classNames(
        'relative min-h-[430px] w-full p-5 flex flex-col bg-white dark:bg-gray-900 shadow-sm rounded-md md:min-h-initial md:h-27.25rem',
        className
      )}
    >
      {children}
      <div data-testid="report-end"></div>
    </div>
  )
}