diff --git a/src/components/ChatHeader.tsx b/src/components/ChatHeader.tsx
index 19944b6..38d2a62 100644
--- a/src/components/ChatHeader.tsx
+++ b/src/components/ChatHeader.tsx
@@ -1,5 +1,5 @@
import { ActionIcon, Box, Flex, Header, TextInput, Tooltip, useMantineTheme } from "@mantine/core";
-import { IconAdjustments, IconInfoCircle } from "@tabler/icons-react";
+import { IconAdjustments, IconInfoCircle, IconShare2, IconWorld } from "@tabler/icons-react";
import { EditChatModal } from "./EditChatModal";
import { Chat, detaDB } from "../db";
import { useEffect, useRef, useState } from "react";
@@ -93,7 +93,20 @@ export function ChatHeader({ readOnly = false }: { readOnly?: boolean}) {
},
})}
>
-
+
+
+
+ {chat!.shared && !readOnly ? (
+ <>
+
+ ({ background: theme.colors.blue[6], borderRadius: '100%' })} pos="absolute" top={8} right={8}>
+ >
+ ) : (
+
+ )}
+
+
+
{!readOnly ? (
<>
diff --git a/src/components/ChatItem.tsx b/src/components/ChatItem.tsx
index 52c769f..b082ba8 100644
--- a/src/components/ChatItem.tsx
+++ b/src/components/ChatItem.tsx
@@ -1,5 +1,5 @@
import { ActionIcon, Flex, Menu, useMantineTheme } from "@mantine/core";
-import { IconDotsVertical, IconMessages } from "@tabler/icons-react";
+import { IconDotsVertical, IconMessages, IconWorld } from "@tabler/icons-react";
import { Link } from "@tanstack/react-location";
import { DeleteChatModal } from "./DeleteChatModal";
import { EditChatModal } from "./EditChatModal";
@@ -7,6 +7,7 @@ import { MainLink } from "./MainLink";
import { useHover } from "@mantine/hooks";
import { Chat } from "../db";
import { useIncognitoMode } from "../hooks/contexts";
+import { ShareChatModal } from "./ShareChatModal";
export function ChatItem({ chat, active = false }: { chat: Chat, active?: boolean }) {
const { hovered, ref } = useHover();
@@ -18,6 +19,7 @@ export function ChatItem({ chat, active = false }: { chat: Chat, active?: boolea
ref={ref}
key={chat.key}
className={active ? "active" : undefined}
+ align='center'
sx={(theme) => ({
marginTop: 1,
"&:hover, &.active": {
@@ -42,6 +44,12 @@ export function ChatItem({ chat, active = false }: { chat: Chat, active?: boolea
label={chat.description}
/>
+
+ {chat.shared && !hovered && (
+
+
+
+ )}