mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-10 12:44:47 -05:00
25 lines
484 B
TypeScript
25 lines
484 B
TypeScript
import { Box } from "@chakra-ui/react";
|
|
import { useMyTheme } from "lib/useMyTheme";
|
|
|
|
interface Props {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
const SubText: React.FC<Props> = ({ children }) => {
|
|
const { themeColorShade } = useMyTheme();
|
|
return (
|
|
<Box
|
|
fontSize="xs"
|
|
textColor={themeColorShade}
|
|
textTransform="uppercase"
|
|
letterSpacing="wider"
|
|
lineHeight="1rem"
|
|
fontWeight="medium"
|
|
>
|
|
{children}
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default SubText;
|