mirror of
https://github.com/makeplane/plane.git
synced 2025-12-20 05:39:32 +01:00
25 lines
703 B
TypeScript
25 lines
703 B
TypeScript
|
|
// editor
|
||
|
|
import { TEmbedConfig, TReadOnlyEmbedConfig } from "@plane/editor";
|
||
|
|
// types
|
||
|
|
import { TPageEmbedType } from "@plane/types";
|
||
|
|
// plane web components
|
||
|
|
import { IssueEmbedUpgradeCard } from "@/plane-web/components/pages";
|
||
|
|
|
||
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||
|
|
export const useIssueEmbed = (workspaceSlug: string, projectId: string, queryType: TPageEmbedType = "issue") => {
|
||
|
|
const widgetCallback = () => <IssueEmbedUpgradeCard />;
|
||
|
|
|
||
|
|
const issueEmbedProps: TEmbedConfig["issue"] = {
|
||
|
|
widgetCallback,
|
||
|
|
};
|
||
|
|
|
||
|
|
const issueEmbedReadOnlyProps: TReadOnlyEmbedConfig["issue"] = {
|
||
|
|
widgetCallback,
|
||
|
|
};
|
||
|
|
|
||
|
|
return {
|
||
|
|
issueEmbedProps,
|
||
|
|
issueEmbedReadOnlyProps,
|
||
|
|
};
|
||
|
|
};
|