mirror of https://github.com/vuejs/vitepress
parent
94e6366c96
commit
5c2eb1b3b0
@ -0,0 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
import type { DefaultTheme } from 'vitepress/theme'
|
||||
|
||||
defineProps<{
|
||||
carbonAds: DefaultTheme.CarbonAdsOptions
|
||||
}>()
|
||||
|
||||
const VPCarbonAds = __CARBON__
|
||||
? defineAsyncComponent(() => import('./VPCarbonAds.vue'))
|
||||
: () => null
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="VPDocAsideCarbonAds">
|
||||
<VPCarbonAds :carbon-ads="carbonAds" />
|
||||
</div>
|
||||
</template>
|
Loading…
Reference in new issue