@nexusui/components
Version:
These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.
19 lines (18 loc) • 643 B
TypeScript
import { DialogContentProps } from '@mui/material/DialogContent';
import { TranslateFuncType } from '../../util/models';
/** The props type of [[`ImageUploadContainer`]]. */
export interface IImageUpload extends DialogContentProps {
/**
* Source for the currently selected image, if any.
*/
currentImage?: string | React.ReactNode;
/**
* Callback for when a new image is selected/uploaded.
*/
onImageChange: (newImage: File) => void;
/**
* translate function
*/
t: TranslateFuncType;
}
export declare const ImageUpload: (props: IImageUpload) => import("react/jsx-runtime").JSX.Element;