import { ExperimentAnalyticsChartDtoTypeEnum, type ExperimentAnalyticsValueDto } from "@montelo/browser-client";
import { FC } from "react";
import { BarChart } from "~/pages/experiments/ExperimentId/analytics/charts/BarChart";
import { PieChart } from "~/pages/experiments/ExperimentId/analytics/charts/PieChart";

export const ChartTypeMap: Record<
  ExperimentAnalyticsChartDtoTypeEnum,
  FC<{
    values: Array<ExperimentAnalyticsValueDto>;
  }>
> = {
  [ExperimentAnalyticsChartDtoTypeEnum.Bar]: BarChart,
  [ExperimentAnalyticsChartDtoTypeEnum.Pie]: PieChart,
};
