Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
12 lines
282 B
Plaintext
12 lines
282 B
Plaintext
"use client";
|
|
import { useAnimationFrame } from '../utils/use-animation-frame.mjs';
|
|
import { useMotionValue } from './use-motion-value.mjs';
|
|
|
|
function useTime() {
|
|
const time = useMotionValue(0);
|
|
useAnimationFrame((t) => time.set(t));
|
|
return time;
|
|
}
|
|
|
|
export { useTime };
|