Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
import { useFeatureFlag } from '@app/lib/analytics/posthog';
import { enableEntityActivitySection } from '@core/constant/featureFlags';
import { useIsAuthenticated } from '@core/context/user';
import type { Accessor } from 'solid-js';
/**
* Whether the entity side panel shows the Activity section. Gates the
* section component itself, so the entity-activity GraphQL query is never
* issued while off or before sign-in.
*/
export function useEntityActivityFlag(): Accessor<boolean> {
const flag = useFeatureFlag(enableEntityActivitySection);
const authenticated = useIsAuthenticated();
return () => authenticated() === true && flag().enabled;
}