import type {Organization} from 'sentry/types/organization'; import {useApiQuery} from 'sentry/utils/queryClient'; import type {RawFlagData} from 'sentry/views/issueDetails/streamline/featureFlagUtils'; export function useOrganizationFlagLog({ organization, query, }: { organization: Organization; query: Record; }) { return useApiQuery( [`/organizations/${organization.slug}/flags/logs/`, {query}], { staleTime: 0, enabled: organization.features.includes('feature-flag-ui'), } ); }