"use client"; import { observer } from "mobx-react-lite"; import useSWR from "swr"; import { Loader } from "@plane/ui"; // components import { PageHeader } from "@/components/core"; // hooks import { useInstance } from "@/hooks/store"; // components import { InstanceAIForm } from "./form"; 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;