feat(dev/shared): Ported PrevNext component to new nav structure
This commit is contained in:
parent
b89d0474ef
commit
0a8dd5f111
10 changed files with 145 additions and 133 deletions
|
@ -13,7 +13,7 @@ const getPage = {
|
|||
}
|
||||
|
||||
export const DocsTitle = ({ slug, className = '', site = 'org' }) => {
|
||||
const siteNav = useNavigation()
|
||||
const { siteNav } = useNavigation()
|
||||
const page = getPage[site](slug, siteNav)
|
||||
|
||||
return page ? <span className={className}>{page.t}</span> : null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue