Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | 52x 52x | import { SxProps } from "@mui/material";
import { GiveTagInputProps } from "@shared/Inputs/GiveEditableTag";
import { FilePreviewType } from "@shared/FilePreview/types";
export const State = {
UPLOADED: "uploaded",
LOADING: "loading",
FAILED: "failed",
} as const;
export const Size = {
DEFAULT: "default",
MINI: "mini",
} as const;
export interface UploadStackProps {
items: GiveUploadItemProps[];
customStyles?: SxProps;
isHideDelete?: boolean;
handleLocalDelete?: (index: number) => void;
hideAllButtons?: boolean;
totalDocuments?: number;
hideEditButtons?: boolean;
hideScrollbar?: boolean;
hideDownload?: boolean;
showAddNote?: boolean;
showIconTooltip?: boolean;
}
export type GiveUploadItemProps = {
merchantId?: number;
state: (typeof State)[keyof typeof State];
value: string;
setValue: (value: string) => void;
isNotice?: boolean;
noticeContent?: string;
errorMessage?: string;
byMessage?: string;
dateMessage?: string;
size?: (typeof Size)[keyof typeof Size];
isMobile?: boolean;
fileData?: FilePreviewType;
isHideDelete?: boolean;
onDelete?: () => void;
tagType?: GiveTagInputProps["type"];
setTagWithApi?: boolean;
handlePreview?: (
fileData?: FilePreviewType,
isBusinessOwnerID?: boolean,
) => void;
isBusinessOwnerID?: boolean;
hideAllButtons?: boolean;
hideEditButtons?: boolean;
isLast?: boolean;
sizeMessage?: string;
useNotes?: boolean;
hideDownload?: boolean;
showAddNote?: boolean;
setNote?: (value: string) => void;
showIconTooltip?: boolean;
};
|