import { jsx as _jsx } from "@emotion/react/jsx-runtime";
import { WidgetField } from './widget-field';
import { WidgetFieldProvider } from './widget-field-context';
export const Widget = ({ path, fields, context }) => (_jsx("div", { children: fields === null || fields === void 0 ? void 0 : fields.map((field) => (_jsx(WidgetFieldProvider, { path: path, data: context, children: _jsx(WidgetField, { field: field, path: path }) }, field.name))) }));
