gitscope
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/modules/hosts/dialogs/mutation/sections/tls-fields.tsx · v0.7.1
Source
1 4056c66 Dawsh 1y ago import { AllowInsecureField, AlpnField } from "../fields";
2 d636f3f Dawsh 2y ago import { SettingSection } from "@marzneshin/modules/hosts/components";
3 d636f3f Dawsh 2y ago import { useTranslation } from "react-i18next";
4 4056c66 Dawsh 1y ago import { FC } from "react";
5 4056c66 Dawsh 1y ago import { ClearableTextField } from "@marzneshin/common/components";
6 d636f3f Dawsh 2y ago
7 d636f3f Dawsh 2y ago export const TlsFields: FC = () => {
8 d636f3f Dawsh 2y ago const { t } = useTranslation();
9 d636f3f Dawsh 2y ago return (
10 4056c66 Dawsh 1y ago <SettingSection
11 4056c66 Dawsh 1y ago value="tls-settings"
12 4056c66 Dawsh 1y ago triggerText={t("page.hosts.tls-config")}
13 4056c66 Dawsh 1y ago >
14 4056c66 Dawsh 1y ago <ClearableTextField name="sni" label={t("sni")} />
15 d636f3f Dawsh 2y ago <AlpnField />
16 d636f3f Dawsh 2y ago <AllowInsecureField />
17 d636f3f Dawsh 2y ago </SettingSection>
18 4056c66 Dawsh 1y ago );
19 4056c66 Dawsh 1y ago };