'use client'
import Link from 'next/link'
import { MessageCircle } from 'lucide-react'
import { Button } from '~/components/ui/button'
import { usePathname } from 'next/navigation'
export default function ChatFAB() {
	const pathName = usePathname()
	const isChat = pathName.indexOf('\/chat') > -1
	return (
		<>
			{!isChat &&
				<div className="fixed bottom-6 right-6 z-50">
					<Button asChild size="icon" className="h-14 w-14 rounded-full shadow-lg">
						<Link href="/assistant">
							<MessageCircle className="h-6 w-6" />
						</Link>
					</Button>
				</div>
			}
		</>
	)
}
