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