import { type JSX } from "react";
import { Outlet } from "react-router";
import { Breadcrumbs, buildEnvironmentsBreadcrumbs } from "@grackle-ai/web-components";
import styles from "./SettingsPage.module.scss";

/** Environments hub page with breadcrumbs and routed content area. */
export function EnvironmentsPage(): JSX.Element {
  const breadcrumbs = buildEnvironmentsBreadcrumbs();

  return (
    <div className={styles.layout}>
      <Breadcrumbs segments={breadcrumbs} />
      <div className={styles.content}>
        <Outlet />
      </div>
    </div>
  );
}
