<script setup lang="ts">
import type { Control } from "@/components/inspector/controls";
import { computed } from "vue";
import { getComponentFor } from "./impl";

const {
  control,
} = defineProps<{
  control: Control;
}>();

const view = computed(() => getComponentFor(control));

</script>

<template>
  <component :is="view" :control="control" />
</template>

<style scoped></style>
