mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-14 15:54:03 +01:00
27 lines
480 B
Vue
27 lines
480 B
Vue
<script lang="ts" setup>
|
|
import { ChatType } from '~~/types'
|
|
|
|
const props = defineProps<{
|
|
type: ChatType
|
|
}>()
|
|
|
|
const category = computed(() => {
|
|
switch (props.type) {
|
|
case ChatType.HARDWARE:
|
|
return 'hardware'
|
|
case ChatType.SOFTWARE:
|
|
return 'software'
|
|
case ChatType.HOMELAB:
|
|
return 'homelab'
|
|
case ChatType.IDE:
|
|
return 'ide'
|
|
default:
|
|
return 'unknown'
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<ToolUses :category="category" />
|
|
</template>
|