@cobuildlab/8base-chat
Version:
Chat component that uses 8base
18 lines (17 loc) • 642 B
TypeScript
/// <reference types="react" />
export interface IUser {
id: string;
email: string;
firstName?: string;
lastName?: string;
}
export interface IOption {
value: string;
label: string;
}
export declare type Prefer<P, T> = P & Omit<T, keyof P>;
export declare type ElementPropsWithoutRef<T extends React.ReactType> = Pick<React.ComponentPropsWithoutRef<T>, keyof React.ComponentPropsWithoutRef<T>>;
export declare type OverwritableType<OwnProps, Type extends React.ReactType> = Prefer<OwnProps, ElementPropsWithoutRef<Type>>;
export declare type SectionsConfig = {
[key in 'channels' | 'dm' | 'contacts']: boolean;
};