import { ArrowLeft } from 'lucide-react'; import { useNavigate } from 'react-router-dom'; import { buttonVariants } from '@librechat/client'; import { useLocalize } from '~/hooks'; import { cn } from '~/utils'; export default function BackToChat({ className }: { className?: string }) { const navigate = useNavigate(); const localize = useLocalize(); const clickHandler = (event: React.MouseEvent) => { if (event.button === 0 && !(event.ctrlKey || event.metaKey)) { event.preventDefault(); navigate('/c/new'); } }; return ( ); }