Files
yt-dlp-webui/frontend/src/hooks/useRPC.ts
2024-11-12 11:31:25 +01:00

10 lines
188 B
TypeScript

import { useAtomValue } from 'jotai'
import { rpcClientState } from '../atoms/rpc'
export const useRPC = () => {
const client = useAtomValue(rpcClientState)
return {
client
}
}