Spaces:
Running
Running
Download frontend/src/components/shared/PageHeader.js from braindecode/OpenEEGBench: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/spaces/braindecode/OpenEEGBench/resolve/refs%2Fpr%2F3/frontend/src/components/shared/PageHeader.js
- Command line
-
hf download hf://spaces/braindecode/OpenEEGBench@refs/pr/3/frontend/src/components/shared/PageHeader.js
-
curl -L -o PageHeader.js https://huggingface.co/spaces/braindecode/OpenEEGBench/resolve/refs%2Fpr%2F3/frontend/src/components/shared/PageHeader.js
611 Bytes
| import React from "react"; | |
| import { Box, Typography } from "@mui/material"; | |
| const PageHeader = ({ title, subtitle }) => { | |
| return ( | |
| <Box | |
| sx={{ | |
| display: "flex", | |
| flexDirection: "column", | |
| alignItems: "center", | |
| textAlign: "center", | |
| mb: 6, | |
| mt: 6, | |
| gap: 2, | |
| }} | |
| > | |
| <Typography fontWeight="bold" variant="h4" component="h1"> | |
| {title} | |
| </Typography> | |
| {subtitle && ( | |
| <Typography variant="h6" color="text.secondary"> | |
| {subtitle} | |
| </Typography> | |
| )} | |
| </Box> | |
| ); | |
| }; | |
| export default PageHeader; | |