import { useRouter } from 'next/router' import { ArrowLeftIcon } from '@primer/octicons-react' import { DEFAULT_VERSION, useVersion } from 'components/hooks/useVersion' export const AllProductsLink = () => { const router = useRouter() const { currentVersion } = useVersion() const currentVersionPathSegment = currentVersion === DEFAULT_VERSION ? '' : `/${currentVersion}` return (