UNPKG

timeline-calendar-react

Version:

A timeline calendar component for React, built with TypeScript and Vite.

24 lines (23 loc) 1.13 kB
import { EventType, StatusType, TimelineCalendarWrapperProps, UserWithRangeType } from '../types'; export declare const useTimelineCalendar: (initialProps: TimelineCalendarWrapperProps) => { state: { filteredData: UserWithRangeType[]; isLoading: boolean; tdWidth: number | null; thRef: import('react').RefObject<HTMLDivElement | null>; openSidebar: boolean; currentDate: string; currentEvents: EventType[]; currentStatuses: StatusType[]; }; actions: { setIsLoading: import('react').Dispatch<import('react').SetStateAction<boolean>>; setOpenSidebar: import('react').Dispatch<import('react').SetStateAction<boolean>>; setCurrentDate: import('react').Dispatch<import('react').SetStateAction<string>>; setSelectedEvents: import('react').Dispatch<import('react').SetStateAction<EventType[]>>; setSelectedStatuses: import('react').Dispatch<import('react').SetStateAction<StatusType[]>>; handleChangeSearch: (value: string) => void; getTdWidth: () => void; updateFilteredData: () => void; }; };