wip(org): Work on new site
This commit is contained in:
parent
75a1ac866b
commit
6714ce7d52
8 changed files with 317 additions and 143 deletions
12
packages/freesewing.shared/components/docs-link.js
Normal file
12
packages/freesewing.shared/components/docs-link.js
Normal 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
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue