import { withRunScript } from 'storybook-addon-run-script/html';
import demoScript from './examples/demo.runscript';
import overview from './examples/overview.html';
import demo from './examples/demo.html';

import { parameters } from '@vtmn/showcase-core/csf/components/overlays/toast.csf';

export default {
  title: 'Components / Overlays / Toast',
  argTypes: { onchange: { action: 'write' } },
  parameters,
};

export const Overview = () => overview;
Overview.parameters = {
  docs: {
    source: {
      code: overview,
    },
  },
};

export const Demo = () => demo;
Demo.decorators = [withRunScript(demoScript)];
Demo.parameters = {
  docs: {
    source: {
      code: demo,
    },
  },
};
