diff --git a/web/components/kefu/chat-shell.tsx b/web/components/kefu/chat-shell.tsx index 8cfd7b5..8ea6558 100644 --- a/web/components/kefu/chat-shell.tsx +++ b/web/components/kefu/chat-shell.tsx @@ -1,6 +1,7 @@ "use client" import { + HeadphonesIcon, Maximize2Icon, Minimize2Icon, MinusIcon, @@ -13,6 +14,7 @@ import { useLayoutEffect, useRef, useState, + type ComponentProps, type CSSProperties, } from "react" import { useShallow } from "zustand/react/shallow" @@ -32,7 +34,6 @@ import { } from "@/lib/kefu-host-bridge" import { useKefuChatStore } from "@/lib/stores/kefu-chat" import { Button } from "@/components/ui/button" -import { ButtonGroup } from "@/components/ui/button-group" import { Dialog, DialogContent, @@ -41,6 +42,25 @@ import { DialogHeader, DialogTitle, } from "@/components/ui/dialog" +import { cn } from "@/lib/utils" + +const windowActionButtonClass = + "size-8 rounded-md border-0 bg-transparent text-muted-foreground shadow-none hover:bg-foreground/[0.06] hover:text-foreground focus-visible:ring-primary/20 dark:hover:bg-white/10" + +function WindowActionButton({ + className, + ...props +}: ComponentProps) { + return ( + + {isEmbedded ? ( <> - - + ) : null} - - + + -
+
-
+