feat(FN-4398): complete remaining dashboard visibility and docs
Fusion-Task-Id: FN-4398 Fusion-Task-Lineage: 8b898b2e-3468-4fa7-8546-b8f6ba52cf46
This commit is contained in:
13
packages/dashboard/app/context/RetryWarningContext.tsx
Normal file
13
packages/dashboard/app/context/RetryWarningContext.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createContext, useContext, type ReactNode } from "react";
|
||||
|
||||
const RetryWarningContext = createContext<number | undefined>(undefined);
|
||||
|
||||
export function RetryWarningProvider(
|
||||
{ value, children }: { value: number | undefined; children: ReactNode },
|
||||
) {
|
||||
return <RetryWarningContext.Provider value={value}>{children}</RetryWarningContext.Provider>;
|
||||
}
|
||||
|
||||
export function useRetryWarning(): number | undefined {
|
||||
return useContext(RetryWarningContext);
|
||||
}
|
||||
Reference in New Issue
Block a user