/**
 * SectionError – error state for section (primitive)
 */
import React from 'react';
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: className, style: { padding: 16, color: 'var(--seekora-error,#dc2626)', fontSize: '0.875rem', ...style } }, error.message));
}
