mirror of
https://github.com/makeplane/plane.git
synced 2025-12-24 23:59:40 +01:00
* refactor: created a generic base page instance * refactor: project store hooks * chore: add missing prop declaration * refactor: editor page root and body * refactor: issue embed hook * chore: update search entity types * fix: version editor component * fix: add page to favorites action --------- Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
26 lines
728 B
TypeScript
26 lines
728 B
TypeScript
// editor
|
|
import { TEmbedConfig } from "@plane/editor";
|
|
// plane types
|
|
import { TSearchEntityRequestPayload, TSearchResponse } from "@plane/types";
|
|
// plane web components
|
|
import { IssueEmbedUpgradeCard } from "@/plane-web/components/pages";
|
|
|
|
export type TIssueEmbedHookProps = {
|
|
fetchEmbedSuggestions?: (payload: TSearchEntityRequestPayload) => Promise<TSearchResponse>;
|
|
projectId?: string;
|
|
workspaceSlug?: string;
|
|
};
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
export const useIssueEmbed = (props: TIssueEmbedHookProps) => {
|
|
const widgetCallback = () => <IssueEmbedUpgradeCard />;
|
|
|
|
const issueEmbedProps: TEmbedConfig["issue"] = {
|
|
widgetCallback,
|
|
};
|
|
|
|
return {
|
|
issueEmbedProps,
|
|
};
|
|
};
|