Something went wrong. Try again.
A Bsky-like frontend using the atprotocol natively.
Something went wrong. Try again.
388 B · 16 lines
TypeScript
at main
1234567891011121314151617import { createContext } from 'react';import type { VideoAutoplay } from '../settings/storage';
interface VideoAutoplayContextValue { autoplay: VideoAutoplay; setAutoplay: (mode: VideoAutoplay) => void;}
export type { VideoAutoplayContextValue };
export const VideoAutoplayContext = createContext<VideoAutoplayContextValue>({ autoplay: 'on', setAutoplay: () => {},});