Files
yt-dlp-webui/frontend/src/hooks/useRPC.ts
2023-07-31 19:14:50 +02:00

10 lines
193 B
TypeScript

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