previewFeature.tsx 419 B

123456789101112131415161718
  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. function PreviewFeature({type = 'info'}: Props) {
  7. return (
  8. <Alert type={type} showIcon>
  9. {t(
  10. 'This feature is a preview and may change in the future. Thanks for being an early adopter!'
  11. )}
  12. </Alert>
  13. );
  14. }
  15. export default PreviewFeature;