fix(style): k8s form
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { createContext, useContext } from 'react';
|
||||
import { ClusterListItem } from './types';
|
||||
|
||||
// for cluster form
|
||||
interface FormContextProps {
|
||||
currentData?: ClusterListItem;
|
||||
submitAttempted?: boolean;
|
||||
}
|
||||
|
||||
export const FormContext = createContext<FormContextProps>({});
|
||||
|
||||
export const useFormContext = () => useContext(FormContext);
|
||||
Reference in New Issue
Block a user