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.

488 B
Raw Blame
import { useFeatureFlag } from '@app/lib/analytics/posthog';
import { enableRecentView } from '@core/constant/featureFlags';
import type { Accessor } from 'solid-js';

/**
 * Whether the Recent view (the touched-by-me feed) and its sidebar entry are
 * shown. When off, the route redirects to the inbox and the touched query is
 * never issued.
 */
export function useRecentViewFlag(): Accessor<boolean> {
  const flag = useFeatureFlag(enableRecentView);
  return () => flag().enabled;
}