import React from 'react' import type { FC } from 'react' import { useTranslation } from 'react-i18next' import { ChatBubbleOvalLeftEllipsisIcon, PencilSquareIcon, } from '@heroicons/react/24/outline' import { ChatBubbleOvalLeftEllipsisIcon as ChatBubbleOvalLeftEllipsisSolidIcon } from '@heroicons/react/24/solid' import Button from '@/app/components/base/button' // import Card from './card' import type { ConversationItem } from '@/types/app' function classNames(...classes: any[]) { return classes.filter(Boolean).join(' ') } const MAX_CONVERSATION_LENTH = 20 export type ISidebarProps = { copyRight: string currentId: string onCurrentIdChange: (id: string) => void list: ConversationItem[] } const Sidebar: FC = ({ copyRight, currentId, onCurrentIdChange, list, }) => { const { t } = useTranslation() return (
{list.length < MAX_CONVERSATION_LENTH && (
)} {/*
LangGenius
*/}
© {copyRight} {(new Date()).getFullYear()}
) } export default React.memo(Sidebar)