Files
t3code/apps/web/src/components/composerSelection.ts
T
5b8445b7a7 fix(web): collapse the resting composer (#7855)
Co-authored-by: maria-rcks <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Code <[email protected]>
2026-09-02 23:53:41 -07:00

16 lines
349 B
TypeScript

export type ComposerSelectionRange = {
start: number;
end: number;
};
export function didComposerSelectionChangeVisibly(
previous: ComposerSelectionRange,
next: ComposerSelectionRange | null,
): boolean {
return (
next !== null &&
next.start !== next.end &&
(next.start !== previous.start || next.end !== previous.end)
);
}