import { Meta } from '@storybook/react';
import React from 'react';
import { merge } from '../../lib/merge';
import MagicBellProvider from '../MagicBellProvider';
import NotificationInbox from './NotificationInbox';
const Component = ({ apiKey, userEmail, userKey, stores, theme, ...props }) => (
);
const meta: Meta = {
component: Component,
argTypes: {
onNotificationClick: { action: 'onNotificationClick' },
onAllRead: { action: 'onAllRead' },
},
};
export default meta;
export const Default = {
args: {
height: 400,
},
};
export const WithCustomPreferences = merge(Default, {
args: {
NotificationPreferences: () => (
),
},
});
export const WithPreferencesDisabled = merge(Default, {
args: {
notificationPreferencesEnabled: false,
},
});
export const SplitInbox = merge(Default, {
args: {
stores: [
{ id: 'default', defaultQueryParams: {} },
{ id: 'unread', defaultQueryParams: { read: true } },
{ id: 'billing', defaultQueryParams: { category: 'billing' } },
],
tabs: [
{ storeId: 'default', label: 'Latest' },
{ storeId: 'unread', label: 'Archive' },
{ storeId: 'billing', label: 'Billing' },
],
},
});