import { AppContext } from '~/types' import { MOCK_DEFAULT_TEAM } from 'lib/api.mock' export const getStorybookAppContext = (): AppContext => ({ anonymous: false, current_team: MOCK_DEFAULT_TEAM, current_user: undefined as any, // undefined triggers a fetch and lets us mock the data default_event_name: '$pageview', persisted_feature_flags: [], preflight: null as any, // null triggers a fetch and lets us mock the data switched_team: null, })