From 0e4a111f81cceed275d9bec2695f6e401fb654d8 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Fri, 12 Nov 2021 02:02:25 +0900
Subject: refactoring

Resolve #7779
---
 packages/client/src/components/code.vue | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 packages/client/src/components/code.vue

(limited to 'packages/client/src/components/code.vue')

diff --git a/packages/client/src/components/code.vue b/packages/client/src/components/code.vue
new file mode 100644
index 0000000000..f5d6c5673a
--- /dev/null
+++ b/packages/client/src/components/code.vue
@@ -0,0 +1,27 @@
+<template>
+<XCode :code="code" :lang="lang" :inline="inline"/>
+</template>
+
+<script lang="ts">
+import { defineComponent, defineAsyncComponent } from 'vue';
+
+export default defineComponent({
+	components: {
+		XCode: defineAsyncComponent(() => import('./code-core.vue'))
+	},
+	props: {
+		code: {
+			type: String,
+			required: true
+		},
+		lang: {
+			type: String,
+			required: false
+		},
+		inline: {
+			type: Boolean,
+			required: false
+		}
+	}
+});
+</script>
-- 
cgit v1.2.3-freya

