import React from 'react';
import IdentNewsletters from './ident-newsletters';
import { IDENT_NAMES } from '../assets/idents-newsletters';

export default {
  title: 'common/Ident Newsletters',
  component: IdentNewsletters,
  args: {
    ident: 'the-world-in-brief',
  },
  argTypes: {
    ident: {
      control: {
        type: 'select',
        options: [...IDENT_NAMES, 'fallback-ident'],
      },
    },
  },
};

// eslint-disable-next-line react/prop-types
export const identNewsletters = ({ ...args }) => <IdentNewsletters {...args} />;
