import { createContext, useContext } from "react";
import type { Viewport } from "./types";

export const ViewportContext = createContext<Viewport>({ x: 0, y: 0, scale: 1 });
export const useViewport = () => useContext(ViewportContext);
