@@ -13,7 +13,6 @@ import { use } from 'react';
1313import { DataTable } from '@/components/analytics/data-table' ;
1414import { Badge } from '@/components/ui/badge' ;
1515import { Card , CardContent } from '@/components/ui/card' ;
16- import { Skeleton } from '@/components/ui/skeleton' ;
1716import { trpc } from '@/lib/trpc' ;
1817
1918interface DatabasePageProps {
@@ -164,89 +163,6 @@ const tableStatsColumns: ColumnDef<TableStat, unknown>[] = [
164163 } ,
165164] ;
166165
167- // Database page skeleton loading component
168- function DatabasePageSkeleton ( ) {
169- return (
170- < div className = "mx-auto max-w-[1600px] space-y-6 p-3 sm:p-4 lg:p-6" >
171- { /* Header Skeleton */ }
172- < div className = "space-y-4" >
173- < div className = "flex items-center gap-2" >
174- < Skeleton className = "h-5 w-5 rounded" />
175- < Skeleton className = "h-7 w-48" />
176- </ div >
177-
178- { /* Stats Overview Skeleton */ }
179- < div className = "grid gap-4 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6" >
180- { Array . from ( { length : 6 } ) . map ( ( _ , i ) => (
181- < div className = "rounded border bg-card p-4" key = { i . toString ( ) } >
182- < div className = "flex items-center gap-3" >
183- < div className = "rounded bg-muted p-2" >
184- < Skeleton className = "h-4 w-4" />
185- </ div >
186- < div className = "space-y-2" >
187- < Skeleton className = "h-3 w-24" />
188- < Skeleton className = "h-6 w-16" />
189- </ div >
190- </ div >
191- </ div >
192- ) ) }
193- </ div >
194- </ div >
195-
196- { /* Table Stats Skeleton */ }
197- < div className = "space-y-4" >
198- < div className = "flex items-center justify-between" >
199- < div className = "flex items-center gap-2" >
200- < Skeleton className = "h-5 w-5 rounded" />
201- < Skeleton className = "h-7 w-36" />
202- </ div >
203- < Skeleton className = "h-6 w-20 rounded" />
204- </ div >
205-
206- { /* Table Skeleton */ }
207- < div className = "rounded border bg-background" >
208- < div className = "border-b p-4" >
209- < div className = "flex items-center gap-4" >
210- < Skeleton className = "h-9 w-80" />
211- < div className = "ml-auto flex gap-2" >
212- < Skeleton className = "h-9 w-32" />
213- < Skeleton className = "h-9 w-28" />
214- </ div >
215- </ div >
216- </ div >
217- < div className = "p-0" >
218- { /* Table Headers */ }
219- < div className = "grid grid-cols-7 gap-4 border-b p-4 font-medium text-sm" >
220- < Skeleton className = "h-4 w-full" />
221- < Skeleton className = "h-4 w-full" />
222- < Skeleton className = "h-4 w-full" />
223- < Skeleton className = "h-4 w-full" />
224- < Skeleton className = "h-4 w-full" />
225- < Skeleton className = "h-4 w-full" />
226- < Skeleton className = "h-4 w-full" />
227- </ div >
228- { /* Table Rows */ }
229- { Array . from ( { length : 8 } ) . map ( ( _ , i ) => (
230- < div
231- className = "grid grid-cols-7 gap-4 border-b p-4 last:border-0"
232- key = { i . toString ( ) }
233- >
234- < Skeleton className = "h-4 w-full" />
235- < Skeleton className = "h-4 w-full" />
236- < Skeleton className = "h-4 w-full" />
237- < Skeleton className = "h-4 w-full" />
238- < Skeleton className = "h-4 w-full" />
239- < Skeleton className = "h-4 w-full" />
240- < Skeleton className = "h-4 w-full" />
241- </ div >
242- ) ) }
243- </ div >
244- </ div >
245- </ div >
246- </ div >
247- ) ;
248- }
249-
250166// Database stats overview component
251167function DatabaseStatsOverview ( {
252168 databaseStats,
0 commit comments