import { Prop, toNative } from 'vue-facing-decorator'; import TsxComponent, { Component } from '../../app/vuetsx'; import './../sweetalert2/css/sweetalert2.css'; interface ModalIconWarningArgs { visible: boolean; } @Component class ModalIconWarningComponent extends TsxComponent implements ModalIconWarningArgs { @Prop() visible!: boolean; render(h) { if (!this.visible) { return null; } else { return (
!
); } } } const ModalIconWarning = toNative(ModalIconWarningComponent); export default ModalIconWarning;