import { FolderOpen } from "lucide-react"; import { Button } from "@/components/ui/button"; import { useTranslation } from "react-i18next"; interface ConfigPathDisplayProps { path: string; onOpen: () => Promise | void; } export function ConfigPathDisplay({ path, onOpen }: ConfigPathDisplayProps) { const { t } = useTranslation(); return (

{t("settings.configFileLocation")}

{t("settings.configFileLocationHint", { defaultValue: "显示当前使用的配置文件路径。", })}

{path || t("common.loading")}
); }