import { useParams } from "@remix-run/react";
import { LoadingSpinner } from "~/components/LoadingIcon";
import { PageDocLink } from "~/pages/layouts/PageDocLink";
import { PageLayout } from "~/pages/layouts/PageLayout";
import { PageSubtitle } from "~/pages/layouts/PageSubtitle";
import { LayoutBreadcrumb } from "~/pages/layouts/types";
import { Routes } from "~/routes";

export const ExperimentIdEvalsSkeleton = () => {
  const params = useParams();

  const breadcrumbs: LayoutBreadcrumb[] = [
    {
      label: "Experiments",
      to: Routes.app.project.env.experiments({
        envId: params.envId!,
        projectId: params.projectId!,
      }),
    },
    {
      label: "—",
    },
    {
      label: "Evals",
    },
  ];

  return (
    <PageLayout breadcrumbs={breadcrumbs}>
      <div className={"flex gap-2 justify-center"}>
        <p>Loading</p>
        <LoadingSpinner />
      </div>
    </PageLayout>
  );
};
