import { elementDefine } from '../index';
import { SwcHTMLEmbedElementBase } from '../elements/base/SwcHTMLEmbedElementBase';

@elementDefine({ name: 'swc-when-embed', extends: 'embed' })
export class SwcWhenEmbed extends SwcHTMLEmbedElementBase {
  connectedCallback() { if (this.style.display !== 'contents') { this.style.display = 'none'; } }
}
