@kiwicom/smart-faq
Version:
Smart FAQ
42 lines (35 loc) • 925 B
JavaScript
// @flow
import type { Brand } from '@kiwicom/nitro/lib/records/Brand';
import type { CuckooLogger } from './shared/cuckoo/cuckooTypes';
export type User = {
id: string,
email: string,
firstname: string,
lastname: string,
} | null;
export type onLogin = () => void;
export type onLogout = () => Promise<*>;
export type Provider = 'facebook' | 'google';
export type SmartFAQProps = {|
cuckoo?: CuckooLogger,
translations: { [key: string]: string } | null,
language: string,
brand: string,
brandConfig: Brand,
direction: string,
user: User,
bid: ?number,
loginToken: ?string,
simpleToken: ?string,
kwAuthToken: ?string,
route: ?string,
showBooking: boolean,
onClose: () => void,
onLogin: onLogin,
onLogout: onLogout,
onToggleIsClosable: boolean => void,
emergencies: string[],
enableChat: boolean,
chatConfig: { [key: string]: string } | null,
isChatActive: boolean,
|};