@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.
6 lines (5 loc) • 419 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { formatDate } from '../../common/utils';
export function DynamicDetailView(props) {
return (_jsxs("div", { ...props.attributes, children: [_jsx("h3", { children: _jsx("span", { children: props.detailItem?.Title }) }), _jsx("div", { children: formatDate(props.detailItem?.PublicationDate, props.widgetContext.requestContext.culture) })] }));
}