mirror of
https://github.com/makeplane/plane.git
synced 2025-12-17 04:17:57 +01:00
* refactor: remove barrel exports from some compoennt modules * refactor: remove barrel exports from issue components * refactor: remove barrel exports from page components * chore: update type improts * refactor: remove barrel exports from cycle components * refactor: remove barrel exports from dropdown components * refactor: remove barrel exports from ce components * refactor: remove barrel exports from some more components * refactor: remove barrel exports from profile and sidebar components * chore: update type imports * refactor: remove barrel exports from store hooks * chore: dynamically load sticky editor * fix: lint * chore: revert sticky dynamic import * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components * refactor: remove barrel exports from ce issue components --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
26 lines
738 B
TypeScript
26 lines
738 B
TypeScript
// editor
|
|
import type { TEmbedConfig } from "@plane/editor";
|
|
// plane types
|
|
import type { 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,
|
|
};
|
|
};
|