import { useState as u, useCallback as x } from "../../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js";
const W = () => {
  const [s, r] = u([]), n = x((a) => {
    r(
      (o) => a.every((t) => !t) ? a : a.map((t, c) => {
        const e = o[c];
        return !e || t > e ? t : e;
      })
    );
  }, []);
  return [s, n];
};
export {
  W as useMaxWidthsState
};
