1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
2020-11-30 00:21:00 -07:00

19 lines
446 B
TypeScript

import { Heading } from '@chakra-ui/react';
import { useConfig } from '~/context';
import type { TSubtitleOnly } from './types';
export const SubtitleOnly = (props: TSubtitleOnly) => {
const { web } = useConfig();
return (
<Heading
as="h3"
whiteSpace="break-spaces"
fontSize={{ base: 'md', lg: 'xl' }}
textAlign={{ base: 'left', xl: 'center' }}
{...props}>
{web.text.subtitle}
</Heading>
);
};