UNPKG

@tonyfreed/card-core

Version:

Core components and types for Ildex card system

20 lines 890 B
/** * useCardActions Hook * Provides memoized action wrappers for card operations */ import type { ICard, IProfile, ThemeConfig, Language, ICardSection } from '../types'; /** * Custom hook that provides memoized action wrappers */ export declare const useCardActions: (dispatch: React.Dispatch<any>) => { updateCard: (updates: Partial<ICard>) => void; updateProfile: (updates: Partial<IProfile>) => void; updateTheme: (updates: Partial<ThemeConfig>) => void; setLanguage: (language: Language) => void; addSection: (section: ICardSection) => void; removeSection: (sectionId: string) => void; updateSection: (sectionId: string, updates: Partial<ICardSection>) => void; reorderSections: (sectionIds: string[]) => void; save: (card: ICard | null, onSave?: (card: ICard) => Promise<void>) => Promise<void>; }; //# sourceMappingURL=useCardActions.d.ts.map