17 lines
496 B
Vue
17 lines
496 B
Vue
<script setup lang="ts">
|
|
import { cn } from '@/lib/utils'
|
|
import { useUrlSearchParams } from '@vueuse/core'
|
|
import ComponentLoader from './ComponentLoader.vue'
|
|
|
|
const params = useUrlSearchParams('history')
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
v-if="params.name"
|
|
:class="cn('preview flex h-screen w-full justify-center p-10 items-center', params.containerClass)"
|
|
>
|
|
<ComponentLoader :key="params.style?.toString()" :name="params.name?.toString()" :type-name="'block'" />
|
|
</div>
|
|
</template>
|