import styled from "styled-components"; import React from "react"; import { HeaderProps } from "./types"; import { FontWeight, Text, TextType } from "design-system"; export const HeaderContainer = styled.div` padding: 32px 32px 20px; margin: auto; text-align: center; & .header-heading-container { & .cs-text { font-size: 32px; line-height: 38px; } } & .header-subHeadings-container { margin: 8px auto; max-width: 640px; & .header-subHeading-container { & .cs-text { font-size: 16px; } } } `; export function HeaderComponent(props: HeaderProps) { const subHeadings = props.subHeadings?.map((sub: string, index: number) => (
{sub}
)); return (
{props.heading}
{subHeadings}
); }