mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-28 21:34:41 -05:00
26 lines
530 B
TypeScript
26 lines
530 B
TypeScript
import { Box, BoxProps } from "@chakra-ui/react";
|
|
import { useMyTheme } from "hooks/common";
|
|
|
|
interface Props {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
const SubText: React.FC<Props & BoxProps> = ({ children, ...props }) => {
|
|
const { themeColorShade } = useMyTheme();
|
|
return (
|
|
<Box
|
|
fontSize="xs"
|
|
textColor={themeColorShade}
|
|
textTransform="uppercase"
|
|
letterSpacing="wider"
|
|
lineHeight="1rem"
|
|
fontWeight="medium"
|
|
{...props}
|
|
>
|
|
{children}
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default SubText;
|