mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-15 00:32:23 +00:00
18 lines
503 B
TypeScript
18 lines
503 B
TypeScript
import type {
|
|
BaseItemDto,
|
|
MediaStream,
|
|
} from "@jellyfin/sdk/lib/generated-client";
|
|
import { atom } from "jotai";
|
|
|
|
export type TVSubtitleModalState = {
|
|
item: BaseItemDto;
|
|
mediaSourceId?: string | null;
|
|
subtitleTracks: MediaStream[];
|
|
currentSubtitleIndex: number;
|
|
onSubtitleIndexChange: (index: number) => void;
|
|
onServerSubtitleDownloaded?: () => void;
|
|
onLocalSubtitleDownloaded?: (path: string) => void;
|
|
} | null;
|
|
|
|
export const tvSubtitleModalAtom = atom<TVSubtitleModalState>(null);
|