mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 21:40:18 +02:00
* chore: pi empty state * fix: response change handled * fix: handled api failure * fix: formatted ai messages * fix: reverted the pi pallete * fix: integrated models api * fix: disabled regenerating new chat * fix: page loading fixed * fix: dynamically imported markdown * fix: removed extras * fix: minor css * fix: handled pi chat in bulk ops
14 lines
463 B
TypeScript
14 lines
463 B
TypeScript
import { useParams } from "next/navigation";
|
|
import { WithFeatureFlagHOC } from "../feature-flags";
|
|
import { PiChatBase } from "./base";
|
|
import { EmptyPiChat } from "./empty";
|
|
export const PiChatRoot = () => {
|
|
const { workspaceSlug } = useParams();
|
|
return (
|
|
// Add CE component for fallback
|
|
<WithFeatureFlagHOC workspaceSlug={workspaceSlug?.toString()} flag="PI_CHAT" fallback={<EmptyPiChat />}>
|
|
<PiChatBase />
|
|
</WithFeatureFlagHOC>
|
|
);
|
|
};
|