import React from "react";

type Props = {
  readonly className: string;
  readonly text: string;
  readonly id: string;
  readonly color?: string;
};

export const Heading = ({ className, text, id, color }: Props) => {
  return (
    <h1 className={className} id={id} style={{ color: color }}>
      {text}
    </h1>
  );
};
