UPDATE/REFACTOR: Replace ContentContext with useContent hook;
REFACTOR: Add content type files;
This commit is contained in:
8
frontend/src/types/CategoryType.ts
Normal file
8
frontend/src/types/CategoryType.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// types/CategoryType.ts
|
||||
export interface CategoryType {
|
||||
type: "category";
|
||||
id: number;
|
||||
title: string;
|
||||
viewers: number;
|
||||
thumbnail?: string;
|
||||
}
|
||||
9
frontend/src/types/StreamType.ts
Normal file
9
frontend/src/types/StreamType.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export interface StreamType {
|
||||
type: "stream";
|
||||
id: number;
|
||||
title: string;
|
||||
username: string;
|
||||
streamCategory: string;
|
||||
viewers: number;
|
||||
thumbnail?: string;
|
||||
}
|
||||
10
frontend/src/types/UserType.ts
Normal file
10
frontend/src/types/UserType.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
// types/UserType.ts
|
||||
export interface UserType {
|
||||
type: "user";
|
||||
id: number;
|
||||
title: string;
|
||||
username: string;
|
||||
isLive: boolean;
|
||||
viewers: number;
|
||||
thumbnail?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user