36 lines
985 B
Vue
36 lines
985 B
Vue
<script setup lang="ts">
|
|
import { MessageCirclePlus } from "@lucide/vue";
|
|
|
|
import { Button } from "@/components/ui/button";
|
|
import ChatSessionActions from "./ChatSessionActions.vue";
|
|
import ChatSessionList from "./ChatSessionList.vue";
|
|
import ChatSettings from "./ChatSettings.vue";
|
|
import { currentSession, newChat } from "./state";
|
|
|
|
/**
|
|
* One row for everything that is not the conversation: which conversation is
|
|
* open, and the controls that are consulted rather than used constantly.
|
|
*
|
|
* Whatever the dock adds to the row, such as its hide control, comes after.
|
|
*/
|
|
</script>
|
|
|
|
<template>
|
|
<div class="flex items-center gap-1 border-b px-3 py-2">
|
|
<ChatSessionList />
|
|
<Button
|
|
variant="ghost"
|
|
size="icon-sm"
|
|
class="flex-none"
|
|
title="New chat"
|
|
aria-label="New chat"
|
|
@click="newChat"
|
|
>
|
|
<MessageCirclePlus />
|
|
</Button>
|
|
<ChatSettings />
|
|
<ChatSessionActions v-if="currentSession" />
|
|
<slot />
|
|
</div>
|
|
</template>
|