feat: add PowerInput component
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
c864a1062d
commit
d06f21c927
20
packages/web/src/contexts/StepExecutions.tsx
Normal file
20
packages/web/src/contexts/StepExecutions.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import * as React from 'react';
|
||||
import { Step } from 'types/step';
|
||||
|
||||
export const StepExecutionsContext = React.createContext<Step[]>([]);
|
||||
|
||||
type StepExecutionsProviderProps = {
|
||||
children: React.ReactNode;
|
||||
value: Step[];
|
||||
}
|
||||
|
||||
export const StepExecutionsProvider = (props: StepExecutionsProviderProps): React.ReactElement => {
|
||||
const { children, value } = props;
|
||||
return (
|
||||
<StepExecutionsContext.Provider
|
||||
value={value}
|
||||
>
|
||||
{children}
|
||||
</StepExecutionsContext.Provider>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user