feat: safari autoplay

This commit is contained in:
ner committed 2025-08-17 20:40:34 +03:00
1 parent 2e16746a40
commit f78af76da5
8 files changed
+127 -104

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import { atom, useAtomValue, useSetAtom } from 'jotai';
const canPlayAtom = atom<boolean>(false as boolean);
export const useCanPlay = () => useAtomValue(canPlayAtom);
export const useSetCanPlay = () => useSetAtom(canPlayAtom);