index.tsx 472 B

12345678910111213
  1. import NoProjectMessage from 'sentry/components/noProjectMessage';
  2. import type {RouteComponentProps} from 'sentry/types/legacyReactRouter';
  3. import useOrganization from 'sentry/utils/useOrganization';
  4. type Props = RouteComponentProps<{}, {}> & {
  5. children: React.ReactNode;
  6. };
  7. export default function ReplaysContainer({children}: Props) {
  8. const organization = useOrganization();
  9. return <NoProjectMessage organization={organization}>{children}</NoProjectMessage>;
  10. }