github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/stories/StatusMessage.stories.tsx (about)

     1  /* eslint-disable react/jsx-props-no-spreading */
     2  import React from 'react';
     3  import StatusMessage from '@ui/StatusMessage';
     4  import { ComponentStory, ComponentMeta } from '@storybook/react';
     5  import '../webapp/sass/profile.scss';
     6  
     7  const Template: ComponentStory<typeof StatusMessage> = (args) => (
     8    <StatusMessage {...args} />
     9  );
    10  
    11  export default {
    12    title: 'Components/StatusMessage',
    13    component: StatusMessage,
    14  } as ComponentMeta<typeof StatusMessage>;
    15  
    16  export const Statusmessage = Template.bind({});
    17  Statusmessage.args = {
    18    type: 'success',
    19    message: 'Example message',
    20  };