import { Typography } from "antd";
import { twMerge } from "tailwind-merge";

const { Text } = Typography;

export const Title = ({ text, className, classNameText, type = "secondary" }) => {
  return (
    <div className={twMerge("mb-1", className)}>
      <Text
        type={type}
        className={classNameText}
      >
        {text}
      </Text>
    </div>
  );
};
