import { canUseDOM } from "../../../utils";
export const clearSelection = ()=>{
    if (!canUseDOM) {
        return;
    }
    const doc = document;
    if (window.getSelection) {
        window.getSelection()?.removeAllRanges();
    } else if (doc.selection) {
        doc.selection.empty();
    }
};
