|
1 |
| -import { BackButton } from '@/components/BackButton'; |
2 |
| -import { CopyKeyframes } from '@/components/CopyKeyframes'; |
3 | 1 | import { Hero } from '@/components/Hero';
|
4 | 2 | import { Renderer } from '@/components/Renderer';
|
5 |
| -import { Button } from '@/components/ui/Button'; |
6 | 3 | import LOADERS from '@/lib/config/loaders';
|
7 | 4 | import type { LoaderProps } from '@/types';
|
8 | 5 | import dynamic from 'next/dynamic';
|
9 | 6 | import Link from 'next/link';
|
10 | 7 | import { HiArrowRight } from 'react-icons/hi';
|
11 | 8 |
|
12 |
| -const CodeBlock = dynamic(() => import('@/components/CodeBlock').then(mod => mod.CodeBlock)); |
13 |
| -const NextJsComponentExample = dynamic(() => import('@/components/Examples').then(mod => mod.NextJsComponentExample)); |
14 |
| -const OhMyZshExample = dynamic(() => import('@/components/Examples').then(mod => mod.OhMyZshExample)); |
15 |
| -const ZeroDependencyExample = dynamic(() => import('@/components/Examples').then(mod => mod.ZeroDependencyExample)); |
| 9 | +const CodeBlock = dynamic(() => |
| 10 | + import('@/components/CodeBlock').then((mod) => mod.CodeBlock), |
| 11 | +); |
| 12 | +const NextJsComponentExample = dynamic(() => |
| 13 | + import('@/components/Examples').then((mod) => mod.NextJsComponentExample), |
| 14 | +); |
| 15 | +const OhMyZshExample = dynamic(() => |
| 16 | + import('@/components/Examples').then((mod) => mod.OhMyZshExample), |
| 17 | +); |
| 18 | +const ZeroDependencyExample = dynamic(() => |
| 19 | + import('@/components/Examples').then((mod) => mod.ZeroDependencyExample), |
| 20 | +); |
| 21 | +const BackButton = dynamic(() => |
| 22 | + import('@/components/BackButton').then((mod) => mod.BackButton), |
| 23 | +); |
| 24 | +const CopyKeyframes = dynamic(() => |
| 25 | + import('@/components/CopyKeyframes').then((mod) => mod.CopyKeyframes), |
| 26 | +); |
| 27 | +const Button = dynamic(() => import('@/components/ui/Button').then((mod) => mod.Button)); |
16 | 28 |
|
17 | 29 | export const generateStaticParams = async () =>
|
18 | 30 | Object.keys(LOADERS).map((key) => ({
|
|
0 commit comments