@scalar/api-reference
Version:
Generate beautiful API references from OpenAPI documents
39 lines (38 loc) • 1.57 kB
JavaScript
import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, createCommentVNode } from "vue";
import LinkList from "../../../components/LinkList/LinkList.vue.js";
import _sfc_main$1 from "../../../features/external-docs/ExternalDocs.vue.js";
import _sfc_main$2 from "../../../features/info-object/Contact.vue.js";
import _sfc_main$3 from "../../../features/info-object/License.vue.js";
import _sfc_main$4 from "../../../features/info-object/TermsOfService.vue.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "InfoLinks",
props: {
info: {},
externalDocs: {}
},
setup(__props) {
return (_ctx, _cache) => {
return openBlock(), createBlock(unref(LinkList), null, {
default: withCtx(() => [
createVNode(unref(_sfc_main$1), { value: __props.externalDocs }, null, 8, ["value"]),
__props.info.contact ? (openBlock(), createBlock(unref(_sfc_main$2), {
key: 0,
value: __props.info.contact
}, null, 8, ["value"])) : createCommentVNode("", true),
__props.info.license ? (openBlock(), createBlock(unref(_sfc_main$3), {
key: 1,
value: __props.info.license
}, null, 8, ["value"])) : createCommentVNode("", true),
__props.info.termsOfService ? (openBlock(), createBlock(unref(_sfc_main$4), {
key: 2,
value: __props.info.termsOfService
}, null, 8, ["value"])) : createCommentVNode("", true)
]),
_: 1
});
};
}
});
export {
_sfc_main as default
};