import { ScrollTextIcon } from "lucide-react"; import { useTranslation } from "react-i18next"; import CodeViewer from "@/components/code-viewer"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Separator } from "@/components/ui/separator"; import { downloadBytes, formatBytes } from "@/lib/utils"; import type { MemShellResult } from "@/types/memshell"; export function JarResult({ packMethod, packResult, generateResult, }: Readonly<{ packMethod: string; packResult: string; generateResult?: MemShellResult; }>) { const { t } = useTranslation(); const isPureJar = packMethod === "Jar"; return ( {t("common:usage")}
  1. {t("common:download")} {packMethod}Shell.jar ( {formatBytes(atob(packResult).length)})
  2. {t("memshell:tips.download-jar")}
  3. {t("memshell:tips.trigger-injector-class-loading")}
); }