fui-fancyui
Version:
FancyUI Libary
16 lines (15 loc) • 330 B
TypeScript
type TAnchorProps = {
type?: 'a';
href?: string;
onClick?: () => void;
};
type TButton = {
type: 'button';
onClick?: () => void;
href?: string;
};
export type TComponentAndActionWrapper = {
WrapperComponent?: React.ReactElement;
children?: React.ReactNode;
} & (TAnchorProps | TButton);
export {};