(null);
const mergedRef = useMergeRefs(ref, wrapperRef);
return (
// biome-ignore lint/a11y/noStaticElementInteractions: Allows focus-calls on div to move focus to heading.
{
if (event.target === wrapperRef.current) {
headingRef?.current?.focus();
}
})}
>
{heading ?? translate("heading")}
{children}
);
},
) as ErrorSummaryComponent;
ErrorSummary.Item = ErrorSummaryItem;
export default ErrorSummary;