Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

427 B
Raw Blame
import { isListViewID } from '@app/constants/list-views';
import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';

export function useIsHomeView() {
  const panel = useSplitPanelOrThrow();

  const currentView = () => {
    const { type, id } = panel.handle.content();
    if (type !== 'component') return;
    return isListViewID(id) ? id : undefined;
  };

  return () => currentView() === 'home';
}