// SPDX-FileCopyrightText: 2024 Shota FUJI <pockawoooh@gmail.com>
// SPDX-License-Identifier: AGPL-3.0-only
import { createContext } from "react";
import type { Selection } from "./types.ts";
export type UpdateSelection = (
updater: (prev: Selection) => Omit<Selection, "cells">,
) => void;
export const UpdateSelectionContext = createContext<UpdateSelection>(() => void 0);