> & {
+ suffix?: ReactElement
+}
+
+function InputHidden(props: InputHiddenProps) {
+ const [type, setType] = useState<"text" | "password">("password");
+
+ const onSwitchType = (ev: MouseEvent) => {
+ ev.preventDefault();
+
+ setType(type === "text" ? "password" : "text");
+ }
+
+ return (
+
+
+ {props.suffix && props.suffix}
+
+
+ );
+}
+
+export default InputHidden;
diff --git a/options/index.tsx b/options/index.tsx
index 039c743..6f92e06 100644
--- a/options/index.tsx
+++ b/options/index.tsx
@@ -3,7 +3,8 @@ import Form from "~components/ui/form";
import { IconPaul } from "~assets/icons";
import Message from "~components/ui/message";
import { add } from "~components/ui/message/utils";
-import "~assets/global.css";
+import InputHidden from "~components/ui/inputHidden";
+import "~assets/global.less";
import styles from "./options.module.less";
function Options() {
@@ -51,7 +52,7 @@ function Options() {