fix(style): k8s form

This commit is contained in:
jialin
2026-06-01 21:06:56 +08:00
committed by jialin
parent e314f25a77
commit 95ffe0350e
12 changed files with 328 additions and 249 deletions
@@ -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);