import DescriptionItem from '@/components/DescriptionItem';
import { useGlobalModalServices } from '@/pages/GlobalModalServices/provider';
import { Flex } from 'antd';
import React from 'react';
import styles from './index.less';

const DataElement: React.FC = () => {
  const { dispatch } = useGlobalModalServices();

  return (
    <div className={styles.container}>
      <Flex gap={20} align="center">
        <DescriptionItem
          onClick={() => {
            dispatch.push('DataGovernance');
          }}
          value={12.06}
          decimals={2}
          name="已汇聚数据"
          unit="亿条"
          valueStyle={{
            background: 'linear-gradient(180deg, #AAFFF6 0%, #25BBFF 100%)',
            WebkitBackgroundClip: 'text',
            WebkitTextFillColor: 'transparent',
            fontFamily: 'D-DIN',
            fontSize: '36px',
            fontWeight: 700,
            lineHeight: 1.1,
          }}
          labelStyle={{
            color: '#BCCEE9',
            // fontFamily: 'DingTalk JinBuTi',
            fontSize: '20px',
            fontWeight: 400,
            lineHeight: 1.1,
          }}
          unitStyle={{
            color: '#BCCEE9',
            // fontFamily: '微软雅黑',
            fontSize: '20px',
            fontWeight: 400,
            lineHeight: 1.1,
          }}
        />
        <div
          className={styles.box}
          onClick={() => dispatch.push('DataActivity')}
        >
          <span className={styles.name}>三级标签体系</span>
        </div>
      </Flex>
    </div>
  );
};

export default DataElement;
