import { useSettings } from 'state/useSettings';
import { useModels } from 'state/useModels';
import { useAccessPolicy } from 'state/useAccessPolicy';
import { useColorModeSync } from './useThemeSync';

// Caches the shell wants warm before anything asks for them. Called once from App.tsx for its effects —
// the return value has never been read.
export const useInitialData = () => {
  const { settings } = useSettings();
  useModels();
  useAccessPolicy();
  useColorModeSync();

  return { settings };
};
