Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

582 B
Raw Blame
import { notFound } from "next/navigation";
import { getCompanyDetails } from "@/actions/company.actions";
import CompanyDetails from "@/components/admin/CompanyDetails";

async function CompanyDetailsPage({
  params,
}: {
  params: Promise<{ id: string }>;
}) {
  const { id } = await params;
  const details = await getCompanyDetails(id);

  // null (missing or not yours) and a failed read both land here
  if (!details?.id) notFound();

  return (
    <div className="col-span-3">
      <CompanyDetails details={details} />
    </div>
  );
}

export default CompanyDetailsPage;