"use client"; import useSWR from "swr"; import { observer } from "mobx-react-lite"; import { Loader } from "@plane/ui"; // components import { PageHeader } from "@/components/core"; import { InstanceAIForm } from "./components"; // hooks import { useInstance } from "@/hooks"; const InstanceAIPage = observer(() => { // store const { fetchInstanceConfigurations, formattedConfig } = useInstance(); useSWR("INSTANCE_CONFIGURATIONS", () => fetchInstanceConfigurations()); return ( <>
AI features for all your workspaces
Configure your AI API credentials so Plane AI features are turned on for all your workspaces.
{formattedConfig ? ( ) : (
)}
); }); export default InstanceAIPage;