import { useEffect as e, useState as t } from "react";
//#region lib/hooks/use-columns.ts
var n = 640, r = 1280;
function i() {
	let [i, a] = t(() => {
		if (typeof window > "u") return 1;
		let e = window.innerWidth;
		return e >= r ? 3 : e >= n ? 2 : 1;
	});
	return e(() => {
		let e = () => {
			let e = window.innerWidth;
			a(e >= r ? 3 : e >= n ? 2 : 1);
		};
		return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
	}, []), i;
}
//#endregion
export { i as useColumns };
