import styles from "./index.module.scss";
interface IProps {
  title: string;
  className?: string;
  icon?: JSX.Element;
}
const TitleComponent = (props: IProps) => {
  const { title, className, icon } = props;
  return (
    <>
      <div
        className={`${styles.titleContainer} ${className ? className : ""} `}
      >
        <div className={styles.icon}>{icon}</div>
        <h1 className={styles.title}>{title}</h1>
      </div>
    </>
  );
};
export default TitleComponent;
