components.widgets.Calendar.CalendarWidget.tsx Maven / Gradle / Ivy
import React, { useContext, useMemo } from 'react'
import { WidgetHOC } from '../../../core/widget/WidgetHOC'
import { FactoryContext } from '../../../core/factory/context'
import StandardWidget from '../StandardWidget'
import { StandardFieldset } from '../Form/fieldsets'
import { WithActiveModel } from '../Widget/WithActiveModel'
import CalendarContainer from './CalendarContainer'
import { type CalendarWidgetProps } from './types'
function CalendarWidget(props: CalendarWidgetProps) {
const {
id: widgetId,
datasource,
toolbar,
disabled,
className,
style,
filter,
calendar,
loading,
} = props
const { resolveProps } = useContext(FactoryContext)
const resolvedFilter = useMemo(() => resolveProps(filter || {}, StandardFieldset) as CalendarWidgetProps['filter'], [filter, resolveProps])
return (
)
}
export default WidgetHOC(WithActiveModel(CalendarWidget))
© 2015 - 2025 Weber Informatics LLC | Privacy Policy