import { useAction, useQuery } from "../operations"
import type { Query, Action } from "../operations/rpc"
import type { Tail } from "../../universal/types"
// PRIVATE API
export function makeUseQueryFor(
query: Query
) {
return (
...rest: Tail>>
) => useQuery(query, ...rest);
}
// PRIVATE API
export function makeUseActionFor(
action: Action
) {
return (
...rest: Tail>>
) => useAction(action, ...rest);
}