1
0
Fork 0

wip(org): Work on new site

This commit is contained in:
Joost De Cock 2022-05-29 17:43:43 +02:00
parent 75a1ac866b
commit 6714ce7d52
8 changed files with 317 additions and 143 deletions

View file

@ -0,0 +1,12 @@
import PageLink from './page-link'
import get from 'lodash.get'
import useApp from 'site/hooks/useApp'
const DocsLink = ({ slug }) => {
const app = useApp()
return <PageLink href={slug} txt={get(app.navigation, [...slug.split('/'), '__title'])} />
}
export default DocsLink