All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.widgets.Calendar.CalendarWidget.tsx Maven / Gradle / Ivy

There is a newer version: 7.28.2
Show newest version
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