UPDATE/REFACTOR: Replace ContentContext with useContent hook;

REFACTOR: Add content type files;
This commit is contained in:
Chris-1010
2025-02-27 01:20:40 +00:00
parent 3f95b35acc
commit 74baa49c04
9 changed files with 178 additions and 158 deletions

View File

@@ -0,0 +1,8 @@
// types/CategoryType.ts
export interface CategoryType {
type: "category";
id: number;
title: string;
viewers: number;
thumbnail?: string;
}

View File

@@ -0,0 +1,9 @@
export interface StreamType {
type: "stream";
id: number;
title: string;
username: string;
streamCategory: string;
viewers: number;
thumbnail?: string;
}

View 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;
}