import { Pie, TimelineChart } from '@/components/Charts';
import NumberInfo from '@/components/NumberInfo';
import { Card, Col, Row, Tabs } from 'antd';
import React, { memo } from 'react';
import { formatMessage, FormattedMessage } from 'umi-plugin-locale';
import styles from './Analysis.less';
interface CustomTabProps {
data: {
name: string;
cvr: number;
};
currentTabKey: string;
}
const CustomTab: (obj: CustomTabProps) => JSX.Element = ({ data, currentTabKey: currentKey }) => (
}
gap={2}
total={`${data.cvr * 100}%`}
theme={currentKey !== data.name && 'light'}
/>
);
const { TabPane } = Tabs;
interface OfflineDataProps {
activeKey: string;
loading: boolean;
offlineData: any[];
offlineChartData: any[];
handleTabChange: (activeKey: string) => void;
}
const OfflineData: React.FC = ({
activeKey,
loading,
offlineData,
offlineChartData,
handleTabChange,
}) => (
{offlineData.map(shop => (
} key={shop.name}>
))}
);
export default memo(OfflineData);