import { FC } from "react"; // packages import { RichTextEditor } from "@plane/rich-text-editor"; // hooks import { useDebouncedCallback } from "use-debounce"; // types import { IIssue } from "types"; // services import { FileService } from "services/file.service"; const fileService = new FileService(); interface IPeekOverviewIssueDetails { workspaceSlug: string; issue: IIssue; issueUpdate: (issue: Partial) => void; } export const PeekOverviewIssueDetails: FC = (props) => { const { workspaceSlug, issue, issueUpdate } = props; const debouncedIssueDescription = useDebouncedCallback(async (_data: any) => { issueUpdate({ ...issue, description_html: _data }); }, 1500); return (
{issue?.project_detail?.identifier}-{issue?.sequence_id}
{issue?.name}
{ debouncedIssueDescription(description_html); }} />
); };