mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-27 13:38:28 +00:00
14 lines
436 B
TypeScript
14 lines
436 B
TypeScript
import { atom } from "jotai";
|
|
import type { MediaType } from "@/utils/jellyseerr/server/constants/media";
|
|
import type { MediaRequestBody } from "@/utils/jellyseerr/server/interfaces/api/requestInterfaces";
|
|
|
|
export type TVRequestModalState = {
|
|
requestBody: MediaRequestBody;
|
|
title: string;
|
|
id: number;
|
|
mediaType: MediaType;
|
|
onRequested: () => void;
|
|
} | null;
|
|
|
|
export const tvRequestModalAtom = atom<TVRequestModalState>(null);
|