import { memo } from 'react'; import type { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; import { TranslatableString } from '@rjsf/utils'; import type { ButtonProps } from 'semantic-ui-react'; import { Button } from 'semantic-ui-react'; export type SemanticIconButtonProps< T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any, > = IconButtonProps & Omit; function IconButtonFn( props: SemanticIconButtonProps, ) { const { icon, iconType, color, className, uiSchema, registry, ...otherProps } = props; return (