/* eslint-disable no-alert */
import { StoryFn, Meta } from '@storybook/react';
import { NotifyReminderPopup } from './NotifyReminderPopup';
import Mock from '../../../stories/assets/mocks/notify-popup.png';
const Example = args => (
);
const meta = {
title: 'owncast/Components/Notify Reminder',
component: NotifyReminderPopup,
parameters: {
design: {
type: 'image',
url: Mock,
},
docs: {
description: {
component: `After visiting the page three times this popup reminding you that you can register for live stream notifications shows up.
Clicking it will make the notification modal display. Clicking the "X" will hide the modal and make it never show again.`,
},
},
},
} satisfies Meta;
export default meta;
const Template: StoryFn = args => ;
export const Active = {
render: Template,
args: {
open: true,
notificationClicked: () => {
alert('notification clicked');
},
notificationClosed: () => {
alert('notification closed');
},
},
};
export const InActive = {
render: Template,
args: {
open: false,
},
};