<script setup lang="ts">
import type { KbxAiAnswer, KbxAiScreenContext } from '@kbx/contracts'
import KbxAiAssistant from './KbxAiAssistant.vue'
defineProps<{ context:KbxAiScreenContext; answer?:KbxAiAnswer|null; loading?:boolean; error?:string; currentScreenLabel?:string; quickQuestions?:string[] }>()
const emit=defineEmits<{ ask:[string]; action:[string]; openProposal:[] }>()
</script>
<template><KbxAiAssistant :context="context" :answer="answer" :loading="loading" :error="error" :current-screen-label="currentScreenLabel" :quick-questions="quickQuestions" @ask="emit('ask',$event)" @action="emit('action',$event)" @open-proposal="emit('openProposal')"/></template>
