/* eslint-disable */ "use client"; import useChatsContext from "@/lib/context/ChatsProvider/hooks/useChatsContext"; import { cn } from "@/lib/utils"; import { MotionConfig, motion } from "framer-motion"; import { useState } from "react"; import { MdChevronRight } from "react-icons/md"; import ChatsListItem from "./ChatsListItem"; import { NewChatButton } from "./NewChatButton"; export const ChatsList = (): JSX.Element => { const { allChats, deleteChat } = useChatsContext(); const [open, setOpen] = useState(true); return ( { if (info.offset.x > 100 && !open) { setOpen(true); } else if (info.offset.x < -100 && open) { setOpen(false); } }} className="lg:sticky fixed top-0 left-0 bottom-0 overflow-visible z-30 border-r border-black/10 dark:border-white/25 bg-white dark:bg-black" >
); };