Skip to content

Commit 9f1ee33

Browse files
Merge pull request #65 from drivly/codex/add-dashboard-layout-with-widgets-and-activity-panels
Add dashboard layout
2 parents 8026b61 + 66ed18e commit 9f1ee33

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { type JSX, type ReactNode } from 'react'
2+
3+
export interface DashboardLayoutProps {
4+
widgets?: ReactNode
5+
activity?: ReactNode
6+
className?: string
7+
}
8+
9+
export function DashboardLayout({ widgets, activity, className }: DashboardLayoutProps): JSX.Element {
10+
return (
11+
<div className={`grid gap-4 md:grid-cols-3 ${className ?? ''}`}>
12+
<section className='space-y-4 md:col-span-2'>{widgets}</section>
13+
<section className='space-y-4 md:col-span-1'>{activity}</section>
14+
</div>
15+
)
16+
}

0 commit comments

Comments
 (0)