import { getTranslations } from "next-intl/server";

import {
  AddConsultantButton,
  ConsultationTable,
} from "@/components/domains/additional-purchases";
import { Card, Typography } from "@/components/ui";

import styles from "./AddConsultantPage.module.scss";

export default async function AddConsultantPage() {
  const t = await getTranslations("AdditionalPurchases.add-consultant");

  return (
    <>
      <Typography as="h2" size="xl" weight="semiBold" className={styles.title}>
        {t("title")}
      </Typography>
      <Typography
        as="p"
        size="sm"
        color="black"
        className={styles.exclusiveOffer}
      >
        {t("exclusive_offer")}
      </Typography>
      <Card className={styles.consultationTable}>
        <ConsultationTable />
      </Card>
      <AddConsultantButton />
    </>
  );
}
