import { cn } from "@/lib/utils";
import React from "react";

function SectionHeader({
  text,
  children,
  className,
}: {
  text: string;
  children?: React.ReactNode;
  className?: string;
}) {
  return (
    <div className="flex w-full items-center justify-between">
      <h2 className={cn("text-2xl font-bold", className)}>{text}</h2>
      {children}
    </div>
  );
}

export default SectionHeader;
