<template>
<x-code :code="code" :lang="lang" :inline="inline"/>
</template>

<script lang="ts">
import { defineComponent, defineAsyncComponent } from 'vue';
import * as os from '@/os';

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>
