Spaces:
Configuration error
Configuration error
Download src/components/layout/PageHeader.tsx from SreejithSHR/umami: direct link, hf CLI and curl.
- Browser
- Download file 805 Bytes
-
https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/components/layout/PageHeader.tsx
- Command line
-
hf download hf://spaces/SreejithSHR/umami/src/components/layout/PageHeader.tsx
-
curl -L -o PageHeader.tsx https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/components/layout/PageHeader.tsx
805 Bytes
| import classNames from 'classnames'; | |
| import React, { ReactNode } from 'react'; | |
| import { Icon } from 'react-basics'; | |
| import styles from './PageHeader.module.css'; | |
| export function PageHeader({ | |
| title, | |
| icon, | |
| className, | |
| breadcrumb, | |
| children, | |
| }: { | |
| title?: ReactNode; | |
| icon?: ReactNode; | |
| className?: string; | |
| breadcrumb?: ReactNode; | |
| children?: ReactNode; | |
| }) { | |
| return ( | |
| <> | |
| <div className={styles.breadcrumb}>{breadcrumb}</div> | |
| <div className={classNames(styles.header, className)}> | |
| {icon && ( | |
| <Icon size="lg" className={styles.icon}> | |
| {icon} | |
| </Icon> | |
| )} | |
| {title && <div className={styles.title}>{title}</div>} | |
| <div className={styles.actions}>{children}</div> | |
| </div> | |
| </> | |
| ); | |
| } | |
| export default PageHeader; | |