trufflesuite/truffle

View on GitHub
packages/codec-components/src/react/contexts/bracket-depth.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { createContext, useContext } from "react";

export type BracketDepthContextValue = number;
export const BracketDepthContext = createContext<BracketDepthContextValue>(0);
export const useBracketDepth = () => useContext(BracketDepthContext);