import { TableColumnsType } from "antd";
import { Sales } from "../../../types/Item";
import { useTranslation } from "react-i18next";

export const useColumns = () => {
  const [t] = useTranslation();


  const columns: TableColumnsType<Sales> = [
    {
      title: t("columns.id"),
      dataIndex: "id",
      key: "id",
      align: "center",
    },
    {
      title: t("columns.student_full_name"),
      dataIndex: "activation_date",
      key: "activation_date",
      align: "center",
    },
    {
      title: t("columns.grade"),
      dataIndex: "grade",
      key: "grade",
      align: "center",
    },
    {
      title: t("columns.package"),
      dataIndex: "package",
      key: "package",
      align: "center",
    },
    {
      title: t("columns.amount_paid"),
      dataIndex: "amount_paid",
      key: "amount_paid",
      align: "center",
    },
    {
      title: t("columns.sale_date"),
      dataIndex: "sale_date",
      key: "sale_date",
      align: "center",
    },
  ];

  return columns;
};
