summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkCode.vue
blob: 8972b1863bbad2747b81128fb36ca7a99dc518a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!--
SPDX-FileCopyrightText: syuilo and other misskey contributors
SPDX-License-Identifier: AGPL-3.0-only
-->

<template>
<XCode :code="code" :lang="lang" :inline="inline"/>
</template>

<script lang="ts" setup>
import { defineAsyncComponent } from 'vue';

defineProps<{
	code: string;
	lang?: string;
	inline?: boolean;
}>();

const XCode = defineAsyncComponent(() => import('@/components/MkCode.core.vue'));
</script>