31 lines
516 B
TypeScript
31 lines
516 B
TypeScript
export enum DiscussionTabs {
|
|
DISCUSSION_BOARDS = 0,
|
|
SAVED_POSTS = 1
|
|
}
|
|
|
|
export type DiscussionHeaderProps = {
|
|
onTabChange: (tab: DiscussionTabs) => void;
|
|
};
|
|
|
|
export type DiscussionBoardCardProps = {
|
|
item: any;
|
|
onPress?: Function;
|
|
};
|
|
|
|
export type SavedPostCardProps = {
|
|
user: {
|
|
name: string;
|
|
profile_image: string;
|
|
};
|
|
date: string;
|
|
title: string;
|
|
description: string;
|
|
image?: string;
|
|
likes?: number;
|
|
comments?: number;
|
|
saved?: boolean;
|
|
starPost?: Function;
|
|
onPress?: Function;
|
|
roomId?: string;
|
|
};
|