MCPcopy Create free account
hub / github.com/TheOrcDev/orcish-fullstack-admin / useChart

Function useChart

components/ui/chart.tsx:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26const ChartContext = React.createContext<ChartContextProps | null>(null);
27
28function useChart() {
29 const context = React.useContext(ChartContext);
30
31 if (!context) {
32 throw new Error("useChart must be used within a <ChartContainer />");
33 }
34
35 return context;
36}
37
38const ChartContainer = React.forwardRef<
39 HTMLDivElement,

Callers 1

chart.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected