π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add blue border frame and reposition logo in Locker file sharing page
anandbaburajand7336b79a3fa
diff --git a/web/apps/locker/src/pages/[token].tsx b/web/apps/locker/src/pages/[token].tsxindex 1ce6263548..192a36c87a 100644--- a/web/apps/locker/src/pages/[token].tsx+++ b/web/apps/locker/src/pages/[token].tsx@@ -491,847 +491,882 @@ const FilePage: React.FC = () => {<Boxsx={{minHeight: "100vh",- bgcolor: "#FAFAFA",+ bgcolor: "#1071FF",display: "flex",flexDirection: "column",alignItems: "center",padding: { xs: 0, md: 3 },- "& ::selection": {- backgroundColor: "#1071FF",- color: "#FFFFFF",- },- "& ::-moz-selection": {- backgroundColor: "#1071FF",- color: "#FFFFFF",- },+ boxSizing: "border-box",}}>- {/* Ente Logo - Always at the top */}- <Box- sx={{- mt: { xs: 3, md: 6 },- mb: fileInfo?.lockerType ? 20 : { xs: 20, md: 6 },- "& svg": { fill: "#000000" },- }}- >- <EnteLogo />- </Box>-- {/* Main Container - Centers the file content */}<Boxsx={{+ minHeight: "100vh",+ width: "100%",+ bgcolor: "#FAFAFA",+ borderRadius: { xs: 0, md: "40px" },display: "flex",flexDirection: "column",alignItems: "center",- justifyContent: { xs: "flex-start", md: "center" },- width: "100%",- maxWidth: 400,- flex: 1,- px: 3,- pb: { xs: 3, md: 0 },+ "& ::selection": {+ backgroundColor: "#1071FF",+ color: "#FFFFFF",+ },+ "& ::-moz-selection": {+ backgroundColor: "#1071FF",+ color: "#FFFFFF",+ },}}>- {/* Loading State */}- {loading && (- <Box- sx={{- flex: 1,- display: "flex",- alignItems: "center",- justifyContent: "center",- }}- >- <CircularProgress sx={{ color: "#1071FF" }} size={32} />- </Box>- )}-- {/* Error State */}- {error && !loading && (- <Box- sx={{- flex: 1,- display: "flex",- alignItems: "center",- justifyContent: "center",- textAlign: "center",- p: 3,- }}- >- <Typography variant="body" color="error">- {error}- </Typography>- </Box>- )}-- {/* File Info Display */}- {fileInfo &&- !loading &&- (() => {- const iconInfo = getLockerFileIcon(- fileInfo.fileName,- fileInfo.lockerType,- );- return (- <>- {/* File Info - Centered */}- <Box- sx={{- display: "flex",- flexDirection: "column",- alignItems: "center",- justifyContent: "center",- gap: 3,- width: "100%",- marginBottom: 4,- }}- >- {/* Large File Icon */}+ {/* Ente Logo - Always at the top */}+ <Box+ sx={{+ mt: { xs: 3, md: 6 },+ mb: fileInfo?.lockerType ? 20 : { xs: 20, md: 6 },+ alignSelf: "flex-end",+ mr: { xs: 3, md: 6 },+ "& svg": { fill: "#000000" },+ }}+ >+ <EnteLogo />+ </Box>++ {/* Main Container - Centers the file content */}+ <Box+ sx={{+ display: "flex",+ flexDirection: "column",+ alignItems: "center",+ justifyContent: { xs: "flex-start", md: "center" },+ width: "100%",+ maxWidth: 400,+ flex: 1,+ px: 3,+ pb: { xs: 3, md: 0 },+ }}+ >+ {/* Loading State */}+ {loading && (+ <Box+ sx={{+ flex: 1,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ <CircularProgress+ sx={{ color: "#1071FF" }}+ size={32}+ />+ </Box>+ )}++ {/* Error State */}+ {error && !loading && (+ <Box+ sx={{+ flex: 1,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ textAlign: "center",+ p: 3,+ }}+ >+ <Typography variant="body" color="error">+ {error}+ </Typography>+ </Box>+ )}++ {/* File Info Display */}+ {fileInfo &&+ !loading &&+ (() => {+ const iconInfo = getLockerFileIcon(+ fileInfo.fileName,+ fileInfo.lockerType,+ );+ return (+ <>+ {/* File Info - Centered */}<Boxsx={{- backgroundColor:- iconInfo.backgroundColor,- borderRadius: "20px",- padding: 1.8,display: "flex",+ flexDirection: "column",alignItems: "center",justifyContent: "center",+ gap: 3,+ width: "100%",+ marginBottom: 4,}}>- {iconInfo.icon}- </Box>-- {/* File Name */}- <Typography- variant="h5"- sx={{- fontWeight: 600,- fontSize: fileInfo.lockerType- ? "24px"- : "22px",- textAlign: "center",- wordBreak: "break-word",- color: "#000000",- }}- >- {fileInfo.fileName}- </Typography>+ {/* Large File Icon */}+ <Box+ sx={{+ backgroundColor:+ iconInfo.backgroundColor,+ borderRadius: "20px",+ padding: 1.8,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ }}+ >+ {iconInfo.icon}+ </Box>- {/* File Size - only show if no locker type */}- {!fileInfo.lockerType && (+ {/* File Name */}<Typography- variant="body"+ variant="h5"sx={{- color: "#757575",- mt: -2,- fontSize: "1rem",+ fontWeight: 600,+ fontSize: fileInfo.lockerType+ ? "24px"+ : "22px",+ textAlign: "center",+ wordBreak: "break-word",+ color: "#000000",}}>- {fileInfo.fileSize > 0- ? formatFileSize(- fileInfo.fileSize,- )- : "Unknown size"}+ {fileInfo.fileName}</Typography>- )}- {/* Note Content - show for note type */}- {fileInfo.lockerType === "note" &&- fileInfo.lockerInfoData?.content && (- <Box sx={{ width: "100%", mt: 2 }}>- <Typography- variant="h6"- sx={{- fontWeight: 500,- fontSize: "16px",- color: "#000000",- mb: 1,- mt: 3,- }}- >- Content- </Typography>+ {/* File Size - only show if no locker type */}+ {!fileInfo.lockerType && (+ <Typography+ variant="body"+ sx={{+ color: "#757575",+ mt: -2,+ fontSize: "1rem",+ }}+ >+ {fileInfo.fileSize > 0+ ? formatFileSize(+ fileInfo.fileSize,+ )+ : "Unknown size"}+ </Typography>+ )}++ {/* Note Content - show for note type */}+ {fileInfo.lockerType === "note" &&+ fileInfo.lockerInfoData+ ?.content && (<Boxsx={{- position: "relative",+ width: "100%",+ mt: 2,}}>- <Box+ <Typography+ variant="h6"sx={{- p: 4,- bgcolor: "#FFFFFF",- borderRadius:- "12px",+ fontWeight: 500,+ fontSize: "16px",+ color: "#000000",+ mb: 1,+ mt: 3,}}>- <Typography- variant="body1"- sx={{- color: "#757575",- whiteSpace:- "pre-wrap",- wordBreak:- "break-word",- }}- >- {- fileInfo- .lockerInfoData- .content- }- </Typography>- </Box>- {/* Copy Button */}- <IconButton- onClick={() =>- handleCopyContent(- fileInfo- .lockerInfoData- .content,- )- }+ Content+ </Typography>+ <Boxsx={{position:- "absolute",- top: 8,- right: 8,- color: "#757575",- "&:hover": {- bgcolor:- "rgba(0, 0, 0, 0.04)",- },+ "relative",}}>- <ContentCopyIcon fontSize="small" />- </IconButton>- </Box>- </Box>- )}-- {/* Physical Record - show for physicalRecord type */}- {fileInfo.lockerType === "physicalRecord" &&- fileInfo.lockerInfoData && (- <Box- sx={{- width: "100%",- mt: 2,- display: "flex",- flexDirection: "column",- gap: 2,- }}- >- {/* Location */}- {fileInfo.lockerInfoData- .location && (- <Box>- <Typography- variant="h6"+ <Boxsx={{- fontWeight: 500,- fontSize:- "16px",- color: "#000000",- mb: 1,- mt: 3,+ p: 4,+ bgcolor:+ "#FFFFFF",+ borderRadius:+ "12px",}}>- Location- </Typography>- <Box+ <Typography+ variant="body1"+ sx={{+ color: "#757575",+ whiteSpace:+ "pre-wrap",+ wordBreak:+ "break-word",+ }}+ >+ {+ fileInfo+ .lockerInfoData+ .content+ }+ </Typography>+ </Box>+ {/* Copy Button */}+ <IconButton+ onClick={() =>+ handleCopyContent(+ fileInfo+ .lockerInfoData+ .content,+ )+ }sx={{position:- "relative",+ "absolute",+ top: 8,+ right: 8,+ color: "#757575",+ "&:hover": {+ bgcolor:+ "rgba(0, 0, 0, 0.04)",+ },}}>+ <ContentCopyIcon fontSize="small" />+ </IconButton>+ </Box>+ </Box>+ )}++ {/* Physical Record - show for physicalRecord type */}+ {fileInfo.lockerType ===+ "physicalRecord" &&+ fileInfo.lockerInfoData && (+ <Box+ sx={{+ width: "100%",+ mt: 2,+ display: "flex",+ flexDirection: "column",+ gap: 2,+ }}+ >+ {/* Location */}+ {fileInfo.lockerInfoData+ .location && (+ <Box>+ <Typography+ variant="h6"+ sx={{+ fontWeight: 500,+ fontSize:+ "16px",+ color: "#000000",+ mb: 1,+ mt: 3,+ }}+ >+ Location+ </Typography><Boxsx={{- px: 4,- py: 2,- bgcolor:- "#FFFFFF",- borderRadius:- "12px",+ position:+ "relative",}}>- <Typography- variant="body1"+ <Boxsx={{- color: "#757575",- whiteSpace:- "pre-wrap",- wordBreak:- "break-word",+ px: 4,+ py: 2,+ bgcolor:+ "#FFFFFF",+ borderRadius:+ "12px",}}>- {- fileInfo- .lockerInfoData- .location+ <Typography+ variant="body1"+ sx={{+ color: "#757575",+ whiteSpace:+ "pre-wrap",+ wordBreak:+ "break-word",+ }}+ >+ {+ fileInfo+ .lockerInfoData+ .location+ }+ </Typography>+ </Box>+ <IconButton+ onClick={() =>+ handleCopyContent(+ fileInfo+ .lockerInfoData+ .location,+ )}- </Typography>+ sx={{+ position:+ "absolute",+ top: 8,+ right: 8,+ color: "#757575",+ "&:hover":+ {+ bgcolor:+ "rgba(0, 0, 0, 0.04)",+ },+ }}+ >+ <ContentCopyIcon fontSize="small" />+ </IconButton></Box>- <IconButton- onClick={() =>- handleCopyContent(- fileInfo- .lockerInfoData- .location,- )- }+ </Box>+ )}++ {/* Notes */}+ {fileInfo.lockerInfoData+ .notes && (+ <Box>+ <Typography+ variant="h6"sx={{- position:- "absolute",- top: 8,- right: 8,- color: "#757575",- "&:hover": {- bgcolor:- "rgba(0, 0, 0, 0.04)",- },+ fontWeight: 500,+ fontSize:+ "16px",+ color: "#000000",+ mb: 1,+ mt: 3,}}>- <ContentCopyIcon fontSize="small" />- </IconButton>- </Box>- </Box>- )}-- {/* Notes */}- {fileInfo.lockerInfoData- .notes && (- <Box>- <Typography- variant="h6"- sx={{- fontWeight: 500,- fontSize:- "16px",- color: "#000000",- mb: 1,- mt: 3,- }}- >- Notes- </Typography>- <Box- sx={{- position:- "relative",- }}- >+ Notes+ </Typography><Boxsx={{- p: 4,- bgcolor:- "#FFFFFF",- borderRadius:- "12px",+ position:+ "relative",}}>- <Typography- variant="body1"+ <Boxsx={{- color: "#757575",- whiteSpace:- "pre-wrap",- wordBreak:- "break-word",+ p: 4,+ bgcolor:+ "#FFFFFF",+ borderRadius:+ "12px",}}>- {- fileInfo- .lockerInfoData- .notes+ <Typography+ variant="body1"+ sx={{+ color: "#757575",+ whiteSpace:+ "pre-wrap",+ wordBreak:+ "break-word",+ }}+ >+ {+ fileInfo+ .lockerInfoData+ .notes+ }+ </Typography>+ </Box>+ <IconButton+ onClick={() =>+ handleCopyContent(+ fileInfo+ .lockerInfoData+ .notes,+ )}- </Typography>+ sx={{+ position:+ "absolute",+ top: 8,+ right: 8,+ color: "#757575",+ "&:hover":+ {+ bgcolor:+ "rgba(0, 0, 0, 0.04)",+ },+ }}+ >+ <ContentCopyIcon fontSize="small" />+ </IconButton></Box>- <IconButton- onClick={() =>- handleCopyContent(- fileInfo- .lockerInfoData- .notes,- )- }+ </Box>+ )}+ </Box>+ )}++ {/* Account Credential - show for accountCredential type */}+ {fileInfo.lockerType ===+ "accountCredential" &&+ fileInfo.lockerInfoData && (+ <Box+ sx={{+ width: "100%",+ mt: 2,+ display: "flex",+ flexDirection: "column",+ gap: 2,+ }}+ >+ {/* Username */}+ {fileInfo.lockerInfoData+ .username && (+ <Box>+ <Typography+ variant="h6"sx={{- position:- "absolute",- top: 8,- right: 8,- color: "#757575",- "&:hover": {- bgcolor:- "rgba(0, 0, 0, 0.04)",- },+ fontWeight: 500,+ fontSize:+ "16px",+ color: "#000000",+ mb: 1,+ mt: 3,}}>- <ContentCopyIcon fontSize="small" />- </IconButton>- </Box>- </Box>- )}- </Box>- )}-- {/* Account Credential - show for accountCredential type */}- {fileInfo.lockerType ===- "accountCredential" &&- fileInfo.lockerInfoData && (- <Box- sx={{- width: "100%",- mt: 2,- display: "flex",- flexDirection: "column",- gap: 2,- }}- >- {/* Username */}- {fileInfo.lockerInfoData- .username && (- <Box>- <Typography- variant="h6"- sx={{- fontWeight: 500,- fontSize:- "16px",- color: "#000000",- mb: 1,- mt: 3,- }}- >- Username- </Typography>- <Box- sx={{- position:- "relative",- }}- >+ Username+ </Typography><Boxsx={{- px: 4,- py: 2,- bgcolor:- "#FFFFFF",- borderRadius:- "12px",+ position:+ "relative",}}>- <Typography- variant="body1"+ <Boxsx={{- color: "#757575",- whiteSpace:- "pre-wrap",- wordBreak:- "break-word",+ px: 4,+ py: 2,+ bgcolor:+ "#FFFFFF",+ borderRadius:+ "12px",}}>- {- fileInfo- .lockerInfoData- .username+ <Typography+ variant="body1"+ sx={{+ color: "#757575",+ whiteSpace:+ "pre-wrap",+ wordBreak:+ "break-word",+ }}+ >+ {+ fileInfo+ .lockerInfoData+ .username+ }+ </Typography>+ </Box>+ <IconButton+ onClick={() =>+ handleCopyContent(+ fileInfo+ .lockerInfoData+ .username,+ )}- </Typography>+ sx={{+ position:+ "absolute",+ top: 8,+ right: 8,+ color: "#757575",+ "&:hover":+ {+ bgcolor:+ "rgba(0, 0, 0, 0.04)",+ },+ }}+ >+ <ContentCopyIcon fontSize="small" />+ </IconButton></Box>- <IconButton- onClick={() =>- handleCopyContent(- fileInfo- .lockerInfoData- .username,- )- }+ </Box>+ )}++ {/* Password */}+ {fileInfo.lockerInfoData+ .password && (+ <Box>+ <Typography+ variant="h6"sx={{- position:- "absolute",- top: 8,- right: 8,- color: "#757575",- "&:hover": {- bgcolor:- "rgba(0, 0, 0, 0.04)",- },+ fontWeight: 500,+ fontSize:+ "16px",+ color: "#000000",+ mb: 1,+ mt: 3,}}>- <ContentCopyIcon fontSize="small" />- </IconButton>- </Box>- </Box>- )}-- {/* Password */}- {fileInfo.lockerInfoData- .password && (- <Box>- <Typography- variant="h6"- sx={{- fontWeight: 500,- fontSize:- "16px",- color: "#000000",- mb: 1,- mt: 3,- }}- >- Password- </Typography>- <Box- sx={{- position:- "relative",- }}- >+ Password+ </Typography><Boxsx={{- px: 4,- py: 2,- bgcolor:- "#FFFFFF",- borderRadius:- "12px",+ position:+ "relative",}}>- <Typography- variant="body1"+ <Boxsx={{+ px: 4,+ py: 2,+ bgcolor:+ "#FFFFFF",+ borderRadius:+ "12px",+ }}+ >+ <Typography+ variant="body1"+ sx={{+ color: "#757575",+ whiteSpace:+ "pre-wrap",+ wordBreak:+ "break-word",+ }}+ >+ **********************+ </Typography>+ </Box>+ <IconButton+ onClick={() =>+ handleCopyContent(+ fileInfo+ .lockerInfoData+ .password,+ )+ }+ sx={{+ position:+ "absolute",+ top: 8,+ right: 8,color: "#757575",- whiteSpace:- "pre-wrap",- wordBreak:- "break-word",+ "&:hover":+ {+ bgcolor:+ "rgba(0, 0, 0, 0.04)",+ },}}>- **********************- </Typography>+ <ContentCopyIcon fontSize="small" />+ </IconButton></Box>- <IconButton- onClick={() =>- handleCopyContent(- fileInfo- .lockerInfoData- .password,- )- }+ </Box>+ )}++ {/* Notes */}+ {fileInfo.lockerInfoData+ .notes && (+ <Box>+ <Typography+ variant="h6"sx={{- position:- "absolute",- top: 8,- right: 8,- color: "#757575",- "&:hover": {- bgcolor:- "rgba(0, 0, 0, 0.04)",- },+ fontWeight: 500,+ fontSize:+ "16px",+ color: "#000000",+ mb: 1,+ mt: 3,}}>- <ContentCopyIcon fontSize="small" />- </IconButton>- </Box>- </Box>- )}-- {/* Notes */}- {fileInfo.lockerInfoData- .notes && (- <Box>- <Typography- variant="h6"- sx={{- fontWeight: 500,- fontSize:- "16px",- color: "#000000",- mb: 1,- mt: 3,- }}- >- Notes- </Typography>- <Box- sx={{- position:- "relative",- }}- >+ Notes+ </Typography><Boxsx={{- p: 4,- bgcolor:- "#FFFFFF",- borderRadius:- "12px",+ position:+ "relative",}}>- <Typography- variant="body1"+ <Boxsx={{- color: "#757575",- whiteSpace:- "pre-wrap",- wordBreak:- "break-word",+ p: 4,+ bgcolor:+ "#FFFFFF",+ borderRadius:+ "12px",}}>- {- fileInfo- .lockerInfoData- .notes+ <Typography+ variant="body1"+ sx={{+ color: "#757575",+ whiteSpace:+ "pre-wrap",+ wordBreak:+ "break-word",+ }}+ >+ {+ fileInfo+ .lockerInfoData+ .notes+ }+ </Typography>+ </Box>+ <IconButton+ onClick={() =>+ handleCopyContent(+ fileInfo+ .lockerInfoData+ .notes,+ )}- </Typography>+ sx={{+ position:+ "absolute",+ top: 8,+ right: 8,+ color: "#757575",+ "&:hover":+ {+ bgcolor:+ "rgba(0, 0, 0, 0.04)",+ },+ }}+ >+ <ContentCopyIcon fontSize="small" />+ </IconButton></Box>- <IconButton- onClick={() =>- handleCopyContent(- fileInfo- .lockerInfoData- .notes,- )- }+ </Box>+ )}+ </Box>+ )}++ {/* Emergency Contact - show for emergencyContact type */}+ {fileInfo.lockerType ===+ "emergencyContact" &&+ fileInfo.lockerInfoData && (+ <Box+ sx={{+ width: "100%",+ mt: 2,+ display: "flex",+ flexDirection: "column",+ gap: 2,+ }}+ >+ {/* Contact Details */}+ {fileInfo.lockerInfoData+ .contactDetails && (+ <Box>+ <Typography+ variant="h6"sx={{- position:- "absolute",- top: 8,- right: 8,- color: "#757575",- "&:hover": {- bgcolor:- "rgba(0, 0, 0, 0.04)",- },+ fontWeight: 500,+ fontSize:+ "16px",+ color: "#000000",+ mb: 1,+ mt: 3,}}>- <ContentCopyIcon fontSize="small" />- </IconButton>- </Box>- </Box>- )}- </Box>- )}-- {/* Emergency Contact - show for emergencyContact type */}- {fileInfo.lockerType ===- "emergencyContact" &&- fileInfo.lockerInfoData && (- <Box- sx={{- width: "100%",- mt: 2,- display: "flex",- flexDirection: "column",- gap: 2,- }}- >- {/* Contact Details */}- {fileInfo.lockerInfoData- .contactDetails && (- <Box>- <Typography- variant="h6"- sx={{- fontWeight: 500,- fontSize:- "16px",- color: "#000000",- mb: 1,- mt: 3,- }}- >- Contact- </Typography>- <Box- sx={{- position:- "relative",- }}- >+ Contact+ </Typography><Boxsx={{- px: 4,- py: 2,- bgcolor:- "#FFFFFF",- borderRadius:- "12px",+ position:+ "relative",}}>- <Typography- variant="body1"+ <Boxsx={{- color: "#757575",- whiteSpace:- "pre-wrap",- wordBreak:- "break-word",+ px: 4,+ py: 2,+ bgcolor:+ "#FFFFFF",+ borderRadius:+ "12px",}}>- {- fileInfo- .lockerInfoData- .contactDetails+ <Typography+ variant="body1"+ sx={{+ color: "#757575",+ whiteSpace:+ "pre-wrap",+ wordBreak:+ "break-word",+ }}+ >+ {+ fileInfo+ .lockerInfoData+ .contactDetails+ }+ </Typography>+ </Box>+ <IconButton+ onClick={() =>+ handleCopyContent(+ fileInfo+ .lockerInfoData+ .contactDetails,+ )}- </Typography>+ sx={{+ position:+ "absolute",+ top: 8,+ right: 8,+ color: "#757575",+ "&:hover":+ {+ bgcolor:+ "rgba(0, 0, 0, 0.04)",+ },+ }}+ >+ <ContentCopyIcon fontSize="small" />+ </IconButton></Box>- <IconButton- onClick={() =>- handleCopyContent(- fileInfo- .lockerInfoData- .contactDetails,- )- }+ </Box>+ )}++ {/* Notes */}+ {fileInfo.lockerInfoData+ .notes && (+ <Box>+ <Typography+ variant="h6"sx={{- position:- "absolute",- top: 8,- right: 8,- color: "#757575",- "&:hover": {- bgcolor:- "rgba(0, 0, 0, 0.04)",- },+ fontWeight: 500,+ fontSize:+ "16px",+ color: "#000000",+ mb: 1,+ mt: 3,}}>- <ContentCopyIcon fontSize="small" />- </IconButton>- </Box>- </Box>- )}-- {/* Notes */}- {fileInfo.lockerInfoData- .notes && (- <Box>- <Typography- variant="h6"- sx={{- fontWeight: 500,- fontSize:- "16px",- color: "#000000",- mb: 1,- mt: 3,- }}- >- Notes- </Typography>- <Box- sx={{- position:- "relative",- }}- >+ Message for+ contact+ </Typography><Boxsx={{- p: 4,- bgcolor:- "#FFFFFF",- borderRadius:- "12px",+ position:+ "relative",}}>- <Typography- variant="body1"+ <Boxsx={{- color: "#757575",- whiteSpace:- "pre-wrap",- wordBreak:- "break-word",+ p: 4,+ bgcolor:+ "#FFFFFF",+ borderRadius:+ "12px",}}>- {- fileInfo- .lockerInfoData- .notes+ <Typography+ variant="body1"+ sx={{+ color: "#757575",+ whiteSpace:+ "pre-wrap",+ wordBreak:+ "break-word",+ }}+ >+ {+ fileInfo+ .lockerInfoData+ .notes+ }+ </Typography>+ </Box>+ <IconButton+ onClick={() =>+ handleCopyContent(+ fileInfo+ .lockerInfoData+ .notes,+ )}- </Typography>+ sx={{+ position:+ "absolute",+ top: 8,+ right: 8,+ color: "#757575",+ "&:hover":+ {+ bgcolor:+ "rgba(0, 0, 0, 0.04)",+ },+ }}+ >+ <ContentCopyIcon fontSize="small" />+ </IconButton></Box>- <IconButton- onClick={() =>- handleCopyContent(- fileInfo- .lockerInfoData- .notes,- )- }- sx={{- position:- "absolute",- top: 8,- right: 8,- color: "#757575",- "&:hover": {- bgcolor:- "rgba(0, 0, 0, 0.04)",- },- }}- >- <ContentCopyIcon fontSize="small" />- </IconButton></Box>- </Box>- )}- </Box>- )}- </Box>-- {/* Download Button */}- {/* Only show download button if not a LockerInfoType */}- {!fileInfo.lockerType && (- <Box sx={{ width: "100%", mt: 4 }}>- <Button- variant="contained"- size="large"- fullWidth- onClick={handleDownload}- disabled={downloading}- sx={{- py: 2.5,- fontSize: "1rem",- fontWeight: 600,- bgcolor: "#1071FF",- color: "white",- "&:hover": {- bgcolor: "#0056CC",- },- "&:disabled": {- bgcolor: "#1071FF",- color: "white",- opacity: 0.7,- },- borderRadius: "22px",- textTransform: "none",- }}- >- {downloading ? (- <>- <CircularProgress- size={20}- sx={{- mr: 1,- color: "white",- }}- />- Downloading...- </>- ) : (- "Download"+ )}+ </Box>)}- </Button></Box>- )}- </>- );- })()}- </Box>- <Notification- open={!!notificationAttributes}- onClose={() => setNotificationAttributes(undefined)}- attributes={notificationAttributes}- />+ {/* Download Button */}+ {/* Only show download button if not a LockerInfoType */}+ {!fileInfo.lockerType && (+ <Box sx={{ width: "100%", mt: 4 }}>+ <Button+ variant="contained"+ size="large"+ fullWidth+ onClick={handleDownload}+ disabled={downloading}+ sx={{+ py: 2.5,+ fontSize: "1rem",+ fontWeight: 600,+ bgcolor: "#1071FF",+ color: "white",+ "&:hover": {+ bgcolor: "#0056CC",+ },+ "&:disabled": {+ bgcolor: "#1071FF",+ color: "white",+ opacity: 0.7,+ },+ borderRadius: "22px",+ textTransform: "none",+ }}+ >+ {downloading ? (+ <>+ <CircularProgress+ size={20}+ sx={{+ mr: 1,+ color: "white",+ }}+ />+ Downloading...+ </>+ ) : (+ "Download"+ )}+ </Button>+ </Box>+ )}+ </>+ );+ })()}+ </Box>++ <Notification+ open={!!notificationAttributes}+ onClose={() => setNotificationAttributes(undefined)}+ attributes={notificationAttributes}+ />+ </Box></Box>);};