Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。
import { useLayoutEffect } from "react";
/** One preview choice drives both control motion and the existing comic poses. */
export function usePreviewReducedMotion(reduced: boolean) {
useLayoutEffect(() => {
document.documentElement.toggleAttribute("data-reduced-motion", reduced);
return () => document.documentElement.removeAttribute("data-reduced-motion");
}, [reduced]);
}