"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: "/companies", name: "Companies" },
    { href: `/companies/feedback/${id}`, name: "Companies feedback" },
  ];
  return (
    <>
      <Breadcrumb items={breadcrumbItems} />
      <FeedbackTable paramKey="company_id" id={id} />
    </>
  );
};

export default TenderFeedbackPage;
