import React from 'react';
import { View } from 'react-native';
import type { StyleProp, ViewStyle } from 'react-native';
import MiniChartViewManager from './MiniChartViewManager';

export type MiniChartViewManagerProps = {
  colData: any;
  rowData: any;
  style?: StyleProp<ViewStyle>;
};

const MiniChart: React.FC<MiniChartViewManagerProps> = ({
  colData,
  rowData,
  style,
}) => {
  return (
    <View style={[{ flex: 1 }, style]}>
      <MiniChartViewManager
        style={[{ flex: 1 }]}
        colData={colData}
        rowData={rowData}
      />
    </View>
  );
};

export default MiniChart;
