53 lines
1.1 KiB
TypeScript
53 lines
1.1 KiB
TypeScript
import { RouteProp } from '@react-navigation/core';
|
|
import { StackNavigationProp } from '@react-navigation/stack';
|
|
|
|
import { NewMessageStackParamList } from '../../stacks/types';
|
|
|
|
export interface ICreateChannelViewProps {
|
|
navigation: StackNavigationProp<NewMessageStackParamList, 'CreateDiscussionView'>;
|
|
route: RouteProp<NewMessageStackParamList, 'CreateDiscussionView'>;
|
|
server: string;
|
|
user: {
|
|
id: string;
|
|
token: string;
|
|
};
|
|
create: Function;
|
|
loading: boolean;
|
|
result: {
|
|
rid: string;
|
|
t: string;
|
|
prid: string;
|
|
};
|
|
failure: boolean;
|
|
error: {
|
|
reason: string;
|
|
};
|
|
theme: string;
|
|
isMasterDetail: boolean;
|
|
blockUnauthenticatedAccess: boolean;
|
|
serverVersion: string;
|
|
encryptionEnabled: boolean;
|
|
}
|
|
|
|
export interface ICreateDiscussionViewSelectChannel {
|
|
server: string;
|
|
token: string;
|
|
userId: string;
|
|
initial: object;
|
|
onChannelSelect: Function;
|
|
blockUnauthenticatedAccess: boolean;
|
|
serverVersion: string;
|
|
theme: string;
|
|
}
|
|
|
|
export interface ICreateDiscussionViewSelectUsers {
|
|
server: string;
|
|
token: string;
|
|
userId: string;
|
|
selected: any[];
|
|
onUserSelect: Function;
|
|
blockUnauthenticatedAccess: boolean;
|
|
serverVersion: string;
|
|
theme: string;
|
|
}
|