/**
 * SectionError – error state for section (primitive)
 */
import React from "react";
import { clsx } from "clsx";
import { useSectionSearchContext } from "./SectionSearchContext";
export function SectionError({ className, style, render }) {
    const { error } = useSectionSearchContext();
    if (!error)
        return null;
    if (render)
        return React.createElement(React.Fragment, null, render(error));
    return (React.createElement("div", { className: clsx("seekora-section-error", className), style: style }, error.message));
}
