previewFeature.tsx 395 B

12345678910111213141516
  1. import Alert from 'sentry/components/alert';
  2. import {t} from 'sentry/locale';
  3. type Props = {
  4. type?: React.ComponentProps<typeof Alert>['type'];
  5. };
  6. const PreviewFeature = ({type = 'info'}: Props) => (
  7. <Alert type={type} showIcon>
  8. {t(
  9. 'This feature is a preview and may change in the future. Thanks for being an early adopter!'
  10. )}
  11. </Alert>
  12. );
  13. export default PreviewFeature;