
import { useContext } from "react";

export const UseContext = <T extends {}>({ context, cref }: { context: React.Context<T>, cref: (context: T) => void }) => {
    const ctx = useContext(context);
    cref(ctx);
    return null;
}
