mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 12:13:10 -05:00
27 lines
541 B
TypeScript
27 lines
541 B
TypeScript
import { Heading } from "@chakra-ui/core";
|
|
import { useMyTheme } from "lib/useMyTheme";
|
|
|
|
interface PageHeaderProps {
|
|
title: string;
|
|
}
|
|
|
|
const PageHeader: React.FC<PageHeaderProps> = ({ title }) => {
|
|
const { themeColor } = useMyTheme();
|
|
return (
|
|
<>
|
|
<Heading
|
|
className="shadow"
|
|
borderBottomColor={themeColor}
|
|
borderBottomWidth="5px"
|
|
mb="0.5em"
|
|
fontFamily="'Rubik', sans-serif"
|
|
fontWeight="bold"
|
|
>
|
|
{title}
|
|
</Heading>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default PageHeader;
|