import { useState as C, useCallback as o } from "react";
const c = () => {
  const [t, n] = C(() => ({
    table: [],
    cards: [],
    list: []
  })), s = o(
    (e) => t[e],
    [t]
  ), i = o(
    (e, r) => {
      n((u) => ({
        ...u,
        [e]: r
      }));
    },
    []
  );
  return {
    viewConfig: t,
    getConfigColumns: s,
    updateConfigColumns: i
  };
};
export {
  c as useViewConfig
};
