getDynamicText.stories.js 419 B

123456789101112131415161718192021
  1. import {Fragment} from 'react';
  2. import getDynamicText from 'sentry/utils/getDynamicText';
  3. export default {
  4. title: 'Utilities/Get Dynamic Text',
  5. component: getDynamicText,
  6. };
  7. export const Default = () => {
  8. return (
  9. <Fragment>
  10. {getDynamicText({
  11. fixed: 'Fixed Content',
  12. value: 'Pretend this is a dynamic value',
  13. })}
  14. </Fragment>
  15. );
  16. };
  17. Default.storyName = 'Get Dynamic Text';