Files
streamyfin/utils/atoms/tvOptionModal.ts
Fredrik Burmester d545ca3584 fix(tv): modals
2026-01-18 15:22:44 +01:00

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);