previewFeature.tsx 477 B

12345678910111213141516171819
  1. import * as React from 'react';
  2. import Alert from 'app/components/alert';
  3. import {IconLab} from 'app/icons';
  4. import {t} from 'app/locale';
  5. type Props = {
  6. type?: React.ComponentProps<typeof Alert>['type'];
  7. };
  8. const PreviewFeature = ({type = 'info'}: Props) => (
  9. <Alert type={type} icon={<IconLab size="sm" />}>
  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. export default PreviewFeature;