UNPKG

@connectycube/chat-widget

Version:

A React component that seamlessly integrates ConnectyCube's real-time chat capabilities into your web applications. This widget offers an out-of-the-box solution for embedding chat features—such as instant messaging, user presence, and file sharing—withou

32 lines (31 loc) 1.6 kB
export type AppSettingStoreProps = { attachmentsAccept: string; attachmentsAcceptList: string[]; enableLastSeen: boolean; enableContentReporting: boolean; enableBlockList: boolean; enableUrlPreview: boolean; limitUrlsPreviews: number; }; export interface AppSettingStoreState extends AppSettingStoreProps { setAttachmentsAccept: (attachmentsAccept: string) => void; setEnableLastSeen: (enableLastSeen: boolean) => void; setEnableContentReporting: (enableContentReporting: boolean) => void; setEnableBlockList: (enableBlockList: boolean) => void; setEnableUrlPreview: (enableUrlPreview: boolean) => void; setLimitUrlsPreviews: (limitUrlsPreviews: number) => void; resetAttachmentsAccept: () => void; resetEnableLastSeen: () => void; resetEnableContentReporting: () => void; resetEnableBlockList: () => void; resetEnableUrlPreview: () => void; resetLimitUrlsPreviews: () => void; isSupportedFile: (file: File) => boolean; } export declare const appSettingsStoreInitialState: AppSettingStoreProps; declare const useAppSettingsStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AppSettingStoreState>>; export declare const setAppSettingsStore: (state: Partial<AppSettingStoreProps>) => void; export declare const resetAppSettingsStore: () => void; export default useAppSettingsStore; export declare const getAttachmentsAcceptList: (attachmentsAccept: string) => string[]; export declare const isSupportedFileMimeType: (file: File, attachmentsAcceptList: AppSettingStoreState["attachmentsAcceptList"]) => boolean;