import * as React from "react"; import { LineChart } from "./LineChart"; import { BarChart } from "./BarChart"; export type ChartType = "line" | "bar"; export interface ChartProps { /** * The data for the Chart */ data: Array; /** * The data keys for the LineChart */ dataKeys: Array; /** * The title for the LineChart */ title: string; /** * The type for the Chart * * @default "line" */ type?: ChartType; } /** * @public * * @description * * The Chart component is used to display some complex data to a user. */ export const Chart: React.FC = (props) => { const { data, dataKeys, title, type = "line", ...rest } = props; const strokes = [ "#4c00b0", "#8a00c2", "#b100cd", "#ca5cdd", "#e8bcf0", ]; return type === "line" ? ( ) : ( ); }; Chart.displayName = "Chart";