import { TableProps } from "antd"
import React from "react"
import { STATUS_ENUM } from "../../tencentAdPutIn/const"

const columns = (): TableProps<any>['columns'] => [
    {
        title: '用户群名称',
        dataIndex: 'name',
        key: 'name',
        ellipsis: true,
        width: 180,
        render: (value) => {
            return <span style={{ fontSize: "12px", cursor: 'pointer' }}>{value}</span>
        }
    },
    {
        title: 'ID',
        dataIndex: 'audienceId',
        key: 'audienceId',
        ellipsis: true,
        width: 120,
        align: 'center',
        render: (value) => {
            return <span style={{ fontSize: "12px", cursor: 'pointer' }}>{value}</span>
        }
    },
    {
        title: '覆盖数量',
        dataIndex: 'userCount',
        key: 'userCount',
        width: 120,
        align: 'center',
        render: (value) => {
            return <span style={{ fontSize: "12px", cursor: 'pointer' }}>{value}</span>
        }
    },
    {
        title: '状态',
        dataIndex: 'status',
        key: 'status',
        ellipsis: true,
        width: 100,
        render: (value) => {
            return <span style={{ fontSize: "12px", cursor: 'pointer' }}>{STATUS_ENUM[value as keyof typeof STATUS_ENUM]}</span>
        }
    },
]

export default columns