import { EnvironmentId } from "@t3tools/contracts";
import { LayersIcon } from "lucide-react";
import { useClientSettings } from "../../hooks/useSettings";
import { Button } from "../ui/button";
import { ProjectOrderList } from "./ProjectOrderList";
import { ProjectSettingsPanel } from "./ProjectSettingsPanel";
import { useSettingsScope } from "./SettingsScopeContext";
import { SettingsScopeNotice } from "./SettingsScopeNotice";
import { SettingsPageContainer } from "./settingsLayout";
import { ALL_ENVIRONMENTS_VALUE, selectEnvironmentAxis } from "./settingsScopeAxis";
export function ProjectsSettings() {
const { search: value, scope, selectScope } = useSettingsScope();
const canOrderProjects = useClientSettings(
(settings) => settings.boringSidebarEnabled || settings.sidebarProjectSortOrder === "manual",
);
const unavailable =
scope.kind === "unavailable" ? (
{scope.message}