<script setup lang="ts">
import CodeEditorComponent from '@/components/common/CodeEditorComponent.vue';


const props = defineProps(
    {
        data: {required: true, type: String},
        contentType: {required:true,type:String},
    }
)



</script>

<template>
    <CodeEditorComponent :code="props.data" :config='{disabled:false, language:props.contentType.replace("application/","")}' />
</template>