mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 18:33:43 +08:00
34 lines
992 B
TypeScript
34 lines
992 B
TypeScript
import { Paper } from "@mui/material";
|
|
import { useTranslation } from "react-i18next";
|
|
import Notice from "../components/base/base-notice";
|
|
import BasePage from "../components/base/base-page";
|
|
import SettingVerge from "../components/setting/setting-verge";
|
|
import SettingClash from "../components/setting/setting-clash";
|
|
import SettingSystem from "../components/setting/setting-system";
|
|
|
|
const SettingPage = () => {
|
|
const { t } = useTranslation();
|
|
|
|
const onError = (err: any) => {
|
|
Notice.error(err?.message || err.toString());
|
|
};
|
|
|
|
return (
|
|
<BasePage title={t("Settings")}>
|
|
<Paper sx={{ borderRadius: 1, boxShadow: 2, mb: 3 }}>
|
|
<SettingClash onError={onError} />
|
|
</Paper>
|
|
|
|
<Paper sx={{ borderRadius: 1, boxShadow: 2, mb: 3 }}>
|
|
<SettingSystem onError={onError} />
|
|
</Paper>
|
|
|
|
<Paper sx={{ borderRadius: 1, boxShadow: 2 }}>
|
|
<SettingVerge onError={onError} />
|
|
</Paper>
|
|
</BasePage>
|
|
);
|
|
};
|
|
|
|
export default SettingPage;
|