Spaces:
Running
Running
Download src/components/ResponsivePageHeader.tsx from fouad12344321/front: direct link, hf CLI and curl.
- Browser
- Download file 722 Bytes
-
https://huggingface.co/spaces/fouad12344321/front/resolve/main/src/components/ResponsivePageHeader.tsx
- Command line
-
hf download hf://spaces/fouad12344321/front/src/components/ResponsivePageHeader.tsx
-
curl -L -o ResponsivePageHeader.tsx https://huggingface.co/spaces/fouad12344321/front/resolve/main/src/components/ResponsivePageHeader.tsx
722 Bytes
| import { ReactNode } from 'react'; | |
| interface ResponsivePageHeaderProps { | |
| title: string; | |
| description?: string; | |
| actions?: ReactNode; | |
| } | |
| export function ResponsivePageHeader({ title, description, actions }: ResponsivePageHeaderProps) { | |
| return ( | |
| <div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 md:gap-4 mb-4 md:mb-6"> | |
| <div> | |
| <h1 className="text-2xl md:text-3xl font-semibold text-gray-900">{title}</h1> | |
| {description && ( | |
| <p className="text-sm md:text-base text-gray-600 mt-1">{description}</p> | |
| )} | |
| </div> | |
| {actions && ( | |
| <div className="flex flex-wrap gap-2"> | |
| {actions} | |
| </div> | |
| )} | |
| </div> | |
| ); | |
| } | |