import * as React from 'react'; import ApiPage from 'docs/src/modules/components/ApiPage'; import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations'; import jsonPageContent from './textarea-autosize.json'; export default function Page(props) { const { descriptions } = props; return ; } export async function getStaticProps() { const req = require.context( 'docs/translations/api-docs/textarea-autosize', false, /\.\/textarea-autosize.*\.json$/, ); const descriptions = mapApiPageTranslations(req); return { props: { descriptions } }; }