Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

1.9 KB
Raw Blame
import { Meta } from '@storybook/nextjs';
import { ChatSocialMessage } from './ChatSocialMessage';

const meta = {
  title: 'owncast/Chat/Messages/Social-fediverse event',
  component: ChatSocialMessage,
  parameters: {},
} satisfies Meta<typeof ChatSocialMessage>;

export default meta;

export const Follow = {
  args: {
    message: {
      type: 'FEDIVERSE_ENGAGEMENT_FOLLOW',
      body: '<p>james followed this live stream.</p>',
      title: '[email protected]',
      image: 'https://mastodon.social/avatars/original/missing.png',
      link: 'https://mastodon.social/@james',
    },
  },
};

export const Like = {
  args: {
    message: {
      type: 'FEDIVERSE_ENGAGEMENT_LIKE',
      body: '<p>james liked that this stream went live.</p>',
      title: '[email protected]',
      image: 'https://mastodon.social/avatars/original/missing.png',
      link: 'https://mastodon.social/@james',
    },
  },
};

export const Repost = {
  args: {
    message: {
      type: 'FEDIVERSE_ENGAGEMENT_REPOST',
      body: '<p>james shared this stream with their followers.</p>',
      title: '[email protected]',
      image: 'https://mastodon.social/avatars/original/missing.png',
      link: 'https://mastodon.social/@james',
    },
  },
};

export const LongAccountName = {
  args: {
    message: {
      type: 'FEDIVERSE_ENGAGEMENT_REPOST',
      body: '<p>james shared this stream with their followers.</p>',
      title: '[email protected]',
      image: 'https://mastodon.social/avatars/original/missing.png',
      link: 'https://mastodon.social/@james',
    },
  },
};

export const InvalidAvatarImage = {
  args: {
    message: {
      type: 'FEDIVERSE_ENGAGEMENT_REPOST',
      body: '<p>james shared this stream with their followers.</p>',
      title: '[email protected]',
      image: 'https://xx.xx/avatars/original/missing.png',
      link: 'https://mastodon.social/@james',
    },
  },
};