favycon/components/tool-title/index.tsx
Rui Saraiva 785563a71c
feat: upgrade dependencies (#480)
* feat: upgrade dependencies

* chore: update linter and CI workflows

* chore: upgrade browserslist
2021-12-04 18:32:53 +00:00

24 lines
597 B
TypeScript

import { Typography } from 'components/typography'
import { SvgFavycon } from 'components/svgs/svg-favycon'
import styles from './index.module.scss'
export type ToolTitleProps = {
hideLogo?: boolean
small?: boolean
}
const ToolTitle = ({ hideLogo = false, small = false }: ToolTitleProps) => (
<div className={styles.root}>
{!hideLogo && <SvgFavycon />}
<Typography variant={small ? 'h2' : 'h1'} weight="extraBold" color="black">
Favycon
</Typography>
<Typography variant="superscript" tag="span" weight="bold" color="gray">
APP
</Typography>
</div>
)
export { ToolTitle }