interface SectionProps {
  heading: string;
  children: React.ReactNode;
}

const Section = ({ children, heading }: SectionProps) => {
  return (
    <section className="flex flex-col gap-8 max-w-7xl mx-auto">
      <h3 className="text-center font-semibold text-3xl">{heading}</h3>
      {children}
    </section>
  );
};

export default Section;
