import React from 'react'; import styled from 'styled-components'; interface StyleProps { size: number; color: string; } interface Props { color?: string; size?: number; title: string; } const H4 = ({ color = '#000', size = 16, title }: Props) => { return ( {title} ); }; export default H4; /* styles */ const H4Style = styled.h4` font-size: ${({ size }) => `${size}px`}; color: ${({ color }) => color}; `;