feat: add PowerInput component

This commit is contained in:
Ali BARIN
2022-02-17 20:15:08 +01:00
committed by Ömer Faruk Aydın
parent c864a1062d
commit d06f21c927
30 changed files with 848 additions and 115 deletions

View 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>
);
};