import type { ReactNode } from "react";

interface DashboardSectionTitleProps {
  icon: ReactNode;
  title: string;
  right?: ReactNode;
}

export default function DashboardSectionTitle({
  icon,
  title,
  right,
}: DashboardSectionTitleProps) {
  return (
    <div className="mb-6 flex items-center justify-between gap-4">
      <div className="flex items-center gap-2 md:gap-4">
        <span className="flex h-9 w-9 md:h-12.5 md:w-12.5 items-center justify-center rounded-full border md:border-2 border-[#AEC4FF]/30 bg-white/60 text-link-1">
          {icon}
        </span>

        <h2 className="font-heading text-base md:text-lg 2xl:text-2xl font-semibold text-heading">
          {title}
        </h2>
      </div>

      {right}
    </div>
  );
}