UNPKG

koval-ui

Version:

React components collection with minimalistic design. Supports theming, layout, and input validation.

15 lines (14 loc) 325 B
"use client"; import { useState as f, useEffect as c } from "react"; const i = ({ sortingProp: t, onSortingChange: s }) => { const [e, u] = f(t); return c(() => { u(t); }, [t]), c(() => { s(e); }, [s, e]), { sorting: e, setSorting: u }; }; export { i as useSorting }; //# sourceMappingURL=useSorting.js.map