import React from "react";
import { TitleProps } from "../../data/Props";
import TitleStyle from "./title.module.css";

export function CommonTitle(props: TitleProps) {
  return (
    <div className={TitleStyle.container}>
      <div className={TitleStyle.title}>{props?.title}</div>
      {props?.must ? <div className={TitleStyle.must}>*</div> : null}
    </div>
  );
}
