Spaces:
Sleeping
Sleeping
Download dashboard/src/components/Panel.tsx from SandeepChakka/store-intelligence: direct link, hf CLI and curl.
- Browser
- Download file 731 Bytes
-
https://huggingface.co/spaces/SandeepChakka/store-intelligence/resolve/main/dashboard/src/components/Panel.tsx
- Command line
-
hf download hf://spaces/SandeepChakka/store-intelligence/dashboard/src/components/Panel.tsx
-
curl -L -o Panel.tsx https://huggingface.co/spaces/SandeepChakka/store-intelligence/resolve/main/dashboard/src/components/Panel.tsx
731 Bytes
| import type { ReactNode } from 'react'; | |
| interface PanelProps { | |
| title: string; | |
| subtitle?: string; | |
| children: ReactNode; | |
| className?: string; | |
| } | |
| export function Panel({ title, subtitle, children, className = '' }: PanelProps) { | |
| return ( | |
| <section | |
| className={`rounded-xl border border-[var(--color-border)] bg-[var(--color-surface-raised)] ${className}`} | |
| > | |
| <div className="border-b border-[var(--color-border)] px-5 py-4"> | |
| <h3 className="text-sm font-semibold text-[var(--color-text)]">{title}</h3> | |
| {subtitle && ( | |
| <p className="mt-0.5 text-xs text-[var(--color-text-muted)]">{subtitle}</p> | |
| )} | |
| </div> | |
| <div className="p-5">{children}</div> | |
| </section> | |
| ); | |
| } | |