import React from 'react'; import { Typography } from '../Typography'; import color from '../../styles/colors'; import { SectionStyled, DivStyled } from './Hero.styles'; import { HeroProps } from './types'; const Hero: React.FC = ({ align = 'center', backgroundColor = `${color.greyLight}`, backgroundURL = '', children, customImage = null, height = '80vh', linearGradient, padding, rounded, subTitle, textColor = `${color.greyDark}`, title, ...props }) => { return ( {title} {subTitle && ( {subTitle} )} {customImage?.url && ( Hero-image )} {children && ( {children} )} ); }; export default Hero;