import { cn } from "@/lib/utils";
import { HTMLAttributes } from "react";

export function InfoBanner({ className, children, ...props }: HTMLAttributes<HTMLDivElement>) {
  return (
    <div
      className={cn(
        "flex items-start gap-2 rounded-lg bg-info-bg px-4 py-3 text-sm text-info-text",
        className,
      )}
      {...props}
    >
      <span className="mt-0.5 shrink-0 text-brand-600">✦</span>
      <p>{children}</p>
    </div>
  );
}
