import { useLocalize } from '~/hooks'; import { TooltipAnchor } from '~/components/ui'; import { cn } from '~/utils'; export default function NavToggle({ onToggle, navVisible, isHovering, setIsHovering, side = 'left', className = '', translateX = true, }: { onToggle: () => void; navVisible: boolean; isHovering: boolean; setIsHovering: (isHovering: boolean) => void; side?: 'left' | 'right'; className?: string; translateX?: boolean; }) { const localize = useLocalize(); const transition = { transition: 'transform 0.3s ease, opacity 0.2s ease', }; const rotationDegree = 15; const rotation = isHovering || !navVisible ? `${rotationDegree}deg` : '0deg'; const topBarRotation = side === 'right' ? `-${rotation}` : rotation; const bottomBarRotation = side === 'right' ? rotation : `-${rotation}`; return (