Spaces:
Paused
Paused
Download ui/src/components/layout.tsx from StaticExposure/ai-toolkit: direct link, hf CLI and curl.
- Browser
- Download file 668 Bytes
-
https://huggingface.co/spaces/StaticExposure/ai-toolkit/resolve/main/ui/src/components/layout.tsx
- Command line
-
hf download hf://spaces/StaticExposure/ai-toolkit/ui/src/components/layout.tsx
-
curl -L -o layout.tsx https://huggingface.co/spaces/StaticExposure/ai-toolkit/resolve/main/ui/src/components/layout.tsx
668 Bytes
| import classNames from 'classnames'; | |
| interface Props { | |
| className?: string; | |
| children?: React.ReactNode; | |
| } | |
| export const TopBar: React.FC<Props> = ({ children, className }) => { | |
| return ( | |
| <div | |
| className={classNames( | |
| 'absolute top-0 left-0 w-full h-12 dark:bg-gray-900 shadow-sm z-10 flex items-center px-2', | |
| className, | |
| )} | |
| > | |
| {children ? children : null} | |
| </div> | |
| ); | |
| }; | |
| export const MainContent: React.FC<Props> = ({ children, className }) => { | |
| return ( | |
| <div className={classNames('pt-14 px-4 absolute top-0 left-0 w-full h-full overflow-auto', className)}> | |
| {children ? children : null} | |
| </div> | |
| ); | |
| }; | |