import React from "react"
import { TextProps } from "./interfaces"
import * as S from "./styles"

const Text:React.FC<TextProps> = ({ 
  children,
  className,
  size,
  type,
  as
}) => {
  return (
    <S.Container 
      as={as}
      className={className} 
      size={size} 
      type={type}>
      { children }
    </S.Container>
  ) 
}

export default Text