gitscope
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/modules/hosts/dialogs/mutation/profiles/wireguard/index.tsx · v0.6.4
Source
1 d636f3f Dawsh 2y ago import {
2 d636f3f Dawsh 2y ago CommonFields,
3 d636f3f Dawsh 2y ago MtuField,
4 d636f3f Dawsh 2y ago DNSServersField,
5 b584c6c Dawsh 2y ago AllowedIpsField,
6 d636f3f Dawsh 2y ago PathField,
7 d636f3f Dawsh 2y ago } from "../../fields";
8 d636f3f Dawsh 2y ago import {
9 d636f3f Dawsh 2y ago Accordion,
10 d636f3f Dawsh 2y ago HStack
11 7389ad0 Mardin 2y ago } from "@marzneshin/common/components";
12 d636f3f Dawsh 2y ago import { SettingSection } from "@marzneshin/modules/hosts"
13 d636f3f Dawsh 2y ago import { useTranslation } from "react-i18next";
14 d636f3f Dawsh 2y ago
15 d636f3f Dawsh 2y ago export const WireguardProfileFields = () => {
16 d636f3f Dawsh 2y ago const { t } = useTranslation();
17 d636f3f Dawsh 2y ago return (
18 d636f3f Dawsh 2y ago <>
19 d636f3f Dawsh 2y ago <CommonFields />
20 d636f3f Dawsh 2y ago <Accordion type="single" collapsible>
21 d636f3f Dawsh 2y ago <SettingSection value="wireguard" triggerText={t("wireguard")}>
22 d636f3f Dawsh 2y ago <HStack>
23 d636f3f Dawsh 2y ago <PathField label={t("page.hosts.server-public-key")} />
24 d636f3f Dawsh 2y ago <MtuField />
25 d636f3f Dawsh 2y ago </HStack>
26 d636f3f Dawsh 2y ago <DNSServersField />
27 b584c6c Dawsh 2y ago <AllowedIpsField />
28 d636f3f Dawsh 2y ago </SettingSection>
29 d636f3f Dawsh 2y ago </Accordion>
30 d636f3f Dawsh 2y ago </>
31 d636f3f Dawsh 2y ago )
32 d636f3f Dawsh 2y ago }
33 d636f3f Dawsh 2y ago
34 d636f3f Dawsh 2y ago export * from "./schema";
35 d636f3f Dawsh 2y ago export * from "./default";