import React from "react"; import type { ViewProps } from "react-native"; import { InteractiveLineChartProps, InteractiveMultiLineChart } from "./InteractiveMultiLineChart"; import { StaticMultiLineChart } from "./StaticMultiLineChart"; import { MultiLineChartProvider } from "./context"; export type MultiLineChartProps< Data extends Record, Static extends boolean = false, > = React.PropsWithChildren< { points: Data; onCanvasResize?: (width: number, height: number) => void; } & Exclude & { children: (args: { points: Data; height: number; width: number }) => React.ReactNode; } & (Static extends true ? { isStatic: true } : { isStatic: false } & InteractiveLineChartProps) >; export const MultiLineChart = < Data extends Record, Static extends boolean = false, >({ isStatic = false, ...props }: MultiLineChartProps) => { return ( {/* */} {isStatic ? ( ) : ( )} ); }; MultiLineChart.displayName = "MultiLineChart";