import styles from "./styles.module.css";
import Title from "@/components/Title";
import { FC, PropsWithChildren } from "react";
import cn from "classnames";

type MessageProps = {
  className?: string;
};

export const Message: FC<PropsWithChildren<MessageProps>> = ({
  children,
  className,
}) => {
  return (
    <Title variant="h2" className={cn(styles["message"], className)}>
      {children}
    </Title>
  );
};
