1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/components/sidebar/AllProductsLink.tsx
Mike Surowiec c433c43019 Sidebar refactor: scope css + more (#20837)
* refactor sidebar, scope css, wire up nav events to link component, update tests

* remove link onClick analytics event

* fix: missing key on breadcrumbs
2021-08-12 15:28:32 -04:00

15 lines
393 B
TypeScript

import { useRouter } from 'next/router'
import { ArrowLeftIcon } from '@primer/octicons-react'
export const AllProductsLink = () => {
const router = useRouter()
return (
<li title="Home">
<a href={`/${router.locale}`} className="f6 pl-4 pr-5 ml-n1 pb-1 color-text-primary">
<ArrowLeftIcon size="small" className="mr-1" />
All products
</a>
</li>
)
}