import { Table, Tooltip } from "antd"; import { TStat } from "../../types/Statistic/TStat"; import { QueryObserverResult, RefetchOptions, RefetchQueryFilters, } from "react-query"; import { QuestionCircleOutlined, QuestionOutlined } from "@ant-design/icons"; // @ts-ignore import tagIcon from "../../assets/tagIcon.png"; import { theme } from "antd"; const StatTable = ({ data, isLoading, refetch, }: { refetch: ( options?: (RefetchOptions & RefetchQueryFilters) | undefined ) => Promise>; data: { data: TStat[] | undefined }; isLoading: boolean; }) => { const { token } = theme.useToken(); return (
({ no: i + 1, ...u, }))} columns={[ { title: , dataIndex: "no", key: "no", width: "5%", }, { title: "Support specialist", dataIndex: "username", key: "username", }, { title: "Team", dataIndex: "team_name", key: "team_name ", }, { title: "Tasks", dataIndex: "number_of_tasks", key: "number_of_tasks", }, { title: "Points", dataIndex: "total_points", key: "total_points", }, { title: (
Salary   
), dataIndex: "salary", key: "salary", render: (text: string, record: any) => ( {record.salary_type === "hybrid" ? (

Fixed Amount: $ {record.salary_base_amount}

) : ( "" )}

Performance based amount: $ {record.performance_based_amount}

} overlayStyle={{ maxWidth: "700px", }} > ${record.salary}
), }, ]} pagination={{ pageSize: 10, size: "default", style: { margin: 0, justifyContent: "end", position: "fixed", bottom: 0, left: 0, width: "100%", backgroundColor: token.colorBgContainer, boxShadow: "0 4px 8px rgba(0, 0, 0, 0.4)", padding: "10px 0", zIndex: 1000, }, }} rowClassName={(record, index) => index % 2 === 0 ? "odd-row" : "even-row" } bordered /> ); }; export default StatTable; // The calculation of salary begins at the start of the month and continues to the current day. Select a month to review salary details for prior periods.