"use client";
import Breadcrumb from "@/components/Breadcrumbs/Breadcrumb";
import FeedbackTable from "@/components/Tables/feedback-table";

import { BreadcrumbItem } from "@/types/shared";
import { use } from "react";
interface IProps {
  params: Promise<{
    id: string;
  }>;
}

const TenderFeedbackPage = ({ params }: IProps) => {
  const { id } = use(params);

  const breadcrumbItems: BreadcrumbItem[] = [
    { href: "/", name: "Dashboard" },
    { href: "/tenders", name: "Tenders" },
    { href: `/tenders/feedback/${id}`, name: "Tender feedback" },
  ];
  return (
    <>
      <Breadcrumb items={breadcrumbItems} />
      <FeedbackTable id={id} paramKey="tender_id" />
    </>
  );
};

export default TenderFeedbackPage;
