tachybase_todo/packages/client/src/schema-component/antd/action/context.tsx
chenos bc27359637
refactor: filter schema component (#213)
* refactor: filter schema component

* feat: improve filter schema component

* fix: cannot find module
2022-03-01 18:06:06 +08:00

12 lines
293 B
TypeScript

import { createContext } from 'react';
export const ActionContext = createContext<ActionContextProps>({});
export interface ActionContextProps {
button?: any;
visible?: boolean;
setVisible?: (v: boolean) => void;
openMode?: 'drawer' | 'modal' | 'page';
containerRefKey?: string;
}