previewFeature.tsx 452 B

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