Files
backnotprop__plannotator/packages/ui/utils/commentContent.ts
Michael Ramos 3b83557356 Keep annotation panel closed when adding annotations
Stop added annotations from forcing the annotation panel open, and keep dirty annotation comment popovers open on outside click so typed feedback is not lost.
2026-06-15 23:50:36 -07:00

9 lines
220 B
TypeScript

import type { ImageAttachment } from "../types";
export function hasUnsavedCommentContent(
text: string,
images: readonly ImageAttachment[] = [],
): boolean {
return text.trim().length > 0 || images.length > 0;
}