feat(org): Ported components to mjs and named exports
This commit is contained in:
parent
37f7833983
commit
595417a23b
118 changed files with 836 additions and 852 deletions
8
sites/shared/components/docs-link.mjs
Normal file
8
sites/shared/components/docs-link.mjs
Normal file
|
@ -0,0 +1,8 @@
|
|||
import PageLink from './page-link.mjs'
|
||||
import get from 'lodash.get'
|
||||
import useApp from 'site/hooks/useApp.mjs'
|
||||
|
||||
export const DocsLink = ({ slug }) => {
|
||||
const app = useApp()
|
||||
return <PageLink href={slug} txt={get(app.navigation, [...slug.split('/'), '__title'])} />
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue