v2: global player, infinite scroll, image picker, threaded comments

This commit is contained in:
khannurien
2026-03-21 13:55:22 +00:00
parent be426eb150
commit 7c098e7c4c
48 changed files with 4346 additions and 711 deletions

View File

@@ -0,0 +1,19 @@
import { createContext } from "react";
export interface PlayerItem {
embedUrl: string;
title?: string;
type: string;
}
export interface PlayerContextValue {
current: PlayerItem | null;
play(item: PlayerItem): void;
stop(): void;
}
export const PlayerContext = createContext<PlayerContextValue>({
current: null,
play: () => {},
stop: () => {},
});