import { Line } from '@ant-design/plots';
import { LineChartViewProps } from './types';

export default function LineChartView(props: LineChartViewProps) {
  const { data, config } = props;

  const lineConfig = {
    data,
    ...config,
  };

  return <Line {...lineConfig} />;
}
