Move dynamicImportFile to dedicated file (#1440)

* test this

* Fixes dynamicImportsMap and types
This commit is contained in:
Eric Fennis
2023-07-19 19:32:34 +02:00
committed by GitHub
parent 9a54838538
commit fb79059fca
6 changed files with 45 additions and 18 deletions
+2 -1
View File
@@ -138,7 +138,8 @@ In NextJS [the dynamic function](https://nextjs.org/docs/pages/building-your-app
```tsx
import dynamic from 'next/dynamic'
import { dynamicIconImports, LucideProps } from 'lucide-react';
import { LucideProps } from 'lucide-react';
import dynamicIconImports from 'lucide-react/dynamicIconImports';
interface IconProps extends LucideProps {
name: keyof typeof dynamicIconImports;