diff --git a/components/object/info.tsx b/components/object/info.tsx index ab93564..fde1576 100644 --- a/components/object/info.tsx +++ b/components/object/info.tsx @@ -10,9 +10,10 @@ import { Switch } from "@/components/ui/switch" import { Spinner } from "@/components/ui/spinner" import { Drawer, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription } from "@/components/ui/drawer" import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog" -import { Item, ItemContent, ItemHeader, ItemTitle } from "@/components/ui/item" +import { Item, ItemContent } from "@/components/ui/item" import { Field, FieldContent, FieldLabel } from "@/components/ui/field" import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group" +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" import { CopyInput } from "@/components/copy-input" import { useObject } from "@/hooks/use-object" import { useMessage } from "@/lib/feedback/message" @@ -449,60 +450,92 @@ export function ObjectInfo({ - - {t("Info")} - - -
- {t("Object Name")} - - {String(object?.Key ?? "")} - -
-
- {t("Object Size")} - - {String(object?.ContentLength ?? "-")} - -
-
- {t("Object Type")} - - {String(object?.ContentType ?? "-")} - -
-
- ETag - - {String(object?.ETag ?? "-")} - -
-
- {t("Last Modified Time")} - - {lastModified || "-"} - -
-
- {t("Legal Hold")} - -
-
- - {t("Retention")} - {t("Policy")} - -
- - {retention} - - {retainUntilDate && ( - - {retainUntilDate} + + + + {t("Info")} + + + {t("Metadata")} + + + + +
+ {t("Object Name")} + + {String(object?.Key ?? "")} - )} -
-
+
+
+ {t("Object Size")} + + {String(object?.ContentLength ?? "-")} + +
+
+ {t("Object Type")} + + {String(object?.ContentType ?? "-")} + +
+
+ ETag + + {String(object?.ETag ?? "-")} + +
+
+ {t("Last Modified Time")} + + {lastModified || "-"} + +
+
+ {t("Legal Hold")} + +
+
+ + {t("Retention")} + {t("Policy")} + +
+ + {retention} + + {retainUntilDate && ( + + {retainUntilDate} + + )} +
+
+
+ + + +
+ {t("Content Type")} + + {String(object?.ContentType ?? "")} + +
+ {object && + Object.entries(object?.Metadata ?? {}).map(([key, value]) => ( + +
+ {t(key)} + + {String(value)} + +
+
+ ))} +
+
+ +
{t("Temporary URL Expiration")}