kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
68 lines (67 loc) • 3.83 kB
TypeScript
import React from 'react';
import { ActionHandler, removeNotification as removeNotificationActions } from '@kepler.gl/actions';
interface NotificationItemProps {
notification: {
id: string;
type: string;
message: string;
count?: number;
};
isExpanded?: boolean;
removeNotification?: ActionHandler<typeof removeNotificationActions>;
theme?: any;
}
export default function NotificationItemFactory(): {
new (props: NotificationItemProps | Readonly<NotificationItemProps>): {
state: {
isExpanded: boolean;
};
componentDidMount(): void;
render(): React.JSX.Element;
context: unknown;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<NotificationItemProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<NotificationItemProps>;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<NotificationItemProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<NotificationItemProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<NotificationItemProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<NotificationItemProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<NotificationItemProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<NotificationItemProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<NotificationItemProps>, nextState: Readonly<{}>, nextContext: any): void;
};
new (props: NotificationItemProps, context: any): {
state: {
isExpanded: boolean;
};
componentDidMount(): void;
render(): React.JSX.Element;
context: unknown;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<NotificationItemProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<NotificationItemProps>;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<NotificationItemProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<NotificationItemProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<NotificationItemProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<NotificationItemProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<NotificationItemProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<NotificationItemProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<NotificationItemProps>, nextState: Readonly<{}>, nextContext: any): void;
};
contextType?: React.Context<any> | undefined;
};
export {};