1
+ import dynamic from "next/dynamic"
1
2
import { getLocale , getTranslations } from "next-intl/server"
2
3
3
4
import { Lang } from "@/lib/types"
@@ -7,13 +8,13 @@ import SectionIconEthGlyph from "@/components/icons/eth-glyph.svg"
7
8
import SectionIconEthWallet from "@/components/icons/eth-wallet.svg"
8
9
import SectionIconHeartPulse from "@/components/icons/heart-pulse.svg"
9
10
import SectionIconPrivacy from "@/components/icons/privacy.svg"
11
+ import { Spinner } from "@/components/ui/spinner"
10
12
11
13
import { formatSmallUSD } from "@/lib/utils/numbers"
12
14
import { getLocaleForNumberFormat } from "@/lib/utils/translations"
13
15
14
16
import BigNumber from "../../../src/components/BigNumber"
15
17
16
- import SlotCountdownChart from "./_components/SlotCountdown"
17
18
import type { DashboardBox , DashboardSection } from "./types"
18
19
19
20
import IconBeaconchain from "@/public/images/resources/beaconcha-in.png"
@@ -53,6 +54,17 @@ import IconUltrasoundMoney from "@/public/images/resources/ultrasound-money.png"
53
54
import IconVisaOnchainAnalytics from "@/public/images/resources/visa-onchain-analytcs.png"
54
55
import IconWalletBeat from "@/public/images/resources/walletbeat.png"
55
56
57
+ const SlotCountdownChart = dynamic (
58
+ ( ) => import ( "./_components/SlotCountdown" ) ,
59
+ {
60
+ ssr : false ,
61
+ loading : ( ) => (
62
+ < div className = "grid h-32 place-items-center" >
63
+ < Spinner />
64
+ </ div >
65
+ ) ,
66
+ }
67
+ )
56
68
export const getResources = async ( {
57
69
txCostsMedianUsd,
58
70
} ) : Promise < DashboardSection [ ] > => {
0 commit comments