UNPKG

@progress/sitefinity-nextjs-sdk

Version:

Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.

8 lines (7 loc) 677 B
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; import { DropdownFieldSet } from './dropdown-client'; export function DropdownDefaultView(props) { const defaultRendering = (_jsxs(_Fragment, { children: [_jsx("script", { "data-sf-role": `start_field_${props.sfFieldName}`, "data-sf-role-field-name": props.sfFieldName }), _jsx(DropdownFieldSet, { ...props }), _jsx("script", { "data-sf-role": `end_field_${props.sfFieldName}` })] })); return (_jsx(_Fragment, { children: props.widgetContext.requestContext.isEdit ? _jsxs("div", { ...props.attributes, children: [" ", defaultRendering, " "] }) : defaultRendering })); }