mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-26 21:18:18 +00:00
19 lines
378 B
TypeScript
19 lines
378 B
TypeScript
import { atom } from "jotai";
|
|
|
|
export type TVOptionItem<T = any> = {
|
|
label: string;
|
|
sublabel?: string;
|
|
value: T;
|
|
selected: boolean;
|
|
};
|
|
|
|
export type TVOptionModalState = {
|
|
title: string;
|
|
options: TVOptionItem[];
|
|
onSelect: (value: any) => void;
|
|
cardWidth?: number;
|
|
cardHeight?: number;
|
|
} | null;
|
|
|
|
export const tvOptionModalAtom = atom<TVOptionModalState>(null);
|