import type { ReactNode } from "react";

/** A titled block of fields in the application form (Figma: 16px semibold title, 20px gaps). */
export function FormGroup({ title, children }: { title: string; children: ReactNode }) {
  return (
    <fieldset className="flex flex-col gap-5">
      <legend className="mb-5 text-base leading-6 font-semibold text-white">{title}</legend>
      {children}
    </fieldset>
  );
}
