index.tsx 706 B

12345678910111213141516171819202122
  1. import * as AppStoreConnectContext from 'sentry/components/projects/appStoreConnectContext';
  2. import {Organization, Project} from 'sentry/types';
  3. import UpdateAlert from './updateAlert';
  4. type Props = Pick<
  5. React.ComponentProps<typeof UpdateAlert>,
  6. 'isCompact' | 'className' | 'Wrapper'
  7. > & {
  8. organization: Organization;
  9. project?: Project;
  10. };
  11. function GlobalAppStoreConnectUpdateAlert({project, organization, ...rest}: Props) {
  12. return (
  13. <AppStoreConnectContext.Provider project={project} organization={organization}>
  14. <UpdateAlert project={project} organization={organization} {...rest} />
  15. </AppStoreConnectContext.Provider>
  16. );
  17. }
  18. export default GlobalAppStoreConnectUpdateAlert;