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

export default TenderFeedbackPage;
