opnform-host-nginx/client/components/global/NotionPage.vue

39 lines
576 B
Vue
Raw Normal View History

2023-12-09 15:47:03 +01:00
<template>
<notion-renderer
v-if="!loading"
:block-map="blockMap"
/>
<div
v-else
class="p-6 flex items-center justify-center"
>
<loader class="w-6 h-6" />
2024-01-02 17:06:55 +01:00
</div>
2023-12-09 15:47:03 +01:00
</template>
<script>
import { NotionRenderer } from "vue-notion"
2023-12-09 15:47:03 +01:00
export default {
name: "NotionPage",
components: { NotionRenderer },
2023-12-09 15:47:03 +01:00
props: {
2024-01-02 17:06:55 +01:00
blockMap: {
type: Object,
2024-01-02 17:06:55 +01:00
},
loading: {
type: Boolean,
required: true,
},
2023-12-09 15:47:03 +01:00
},
}
</script>
<style lang="scss">
@import "vue-notion/src/styles.css";
2023-12-09 15:47:03 +01:00
.notion-blue {
@apply text-nt-blue;
}
</style>