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

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