import { Column } from '@ant-design/plots';
import { ColumnChartViewProps } from './types';

export default function ColumnChart(props: ColumnChartViewProps) {
  const { data, config } = props;

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

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