17 lines
606 B
JavaScript
17 lines
606 B
JavaScript
|
|
import * as React from 'react';
|
||
|
|
import ApiPage from 'docs/src/modules/components/ApiPage';
|
||
|
|
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
|
||
|
|
import jsonPageContent from './tabs.json';
|
||
|
|
|
||
|
|
export default function Page(props) {
|
||
|
|
const { descriptions } = props;
|
||
|
|
return <ApiPage descriptions={descriptions} pageContent={jsonPageContent} />;
|
||
|
|
}
|
||
|
|
|
||
|
|
export async function getStaticProps() {
|
||
|
|
const req = require.context('docs/translations/api-docs-joy/tabs', false, /\.\/tabs.*\.json$/);
|
||
|
|
const descriptions = mapApiPageTranslations(req);
|
||
|
|
|
||
|
|
return { props: { descriptions } };
|
||
|
|
}
|