UNPKG

geoiq-frontend-ui-kit

Version:

This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.

28 lines (27 loc) 509 B
import { useState as g, useCallback as a } from "react"; const d = (e) => { const [n, o] = g(e), c = a(() => { o((t) => ({ ...t, bgRotation: (t.bgRotation + 90) % 360 })); }, []), r = a( (t) => { o((u) => ({ ...u, bgImageSize: t })); }, [] ); return { backgroundState: n, setBackgroundState: o, rotateBackground: c, updateBackgroundSize: r }; }; export { d as useBackgroundState }; //# sourceMappingURL=index.es98.js.map