Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

776 B
Raw Blame
import type { IReport } from '@openpanel/core/modules/report/report.constants';
import { ModalContent, ModalHeader } from './Modal/Container';
import { ReportChart } from '@/components/report-chart';
import { ScrollArea } from '@/components/ui/scroll-area';

type Props = {
  chart: IReport;
};

const OverviewChartDetails = (props: Props) => {
  return (
    <ModalContent>
      <ModalHeader title={props.chart.name} />
      <ScrollArea className="-m-6 max-h-[calc(100vh-200px)]">
        <div className="p-6">
          <ReportChart
            report={{
              ...props.chart,
              limit: 999,
              chartType: 'bar',
            }}
          />
        </div>
      </ScrollArea>
    </ModalContent>
  );
};

export default OverviewChartDetails;