import { Node } from '../../node.js';

class StorybookLeafDirective extends Node {
  constructor (data) {
    super(data, 'iframe');
  }

  async render() {
    return `
      <div class="dsfr-doc-storybook-leaf fr-mb-6v">
        ${await super.render()}
      </div>
    `;
  }
}

StorybookLeafDirective.NAME = 'dsfr-doc-storybook';

export { StorybookLeafDirective };
