diff --git a/src/components/wayfern-config-form.tsx b/src/components/wayfern-config-form.tsx index 80cd255..e6816f4 100644 --- a/src/components/wayfern-config-form.tsx +++ b/src/components/wayfern-config-form.tsx @@ -1,6 +1,7 @@ "use client"; import { useEffect, useState } from "react"; +import { LuLock } from "react-icons/lu"; import { Alert, AlertDescription } from "@/components/ui/alert"; import { Checkbox } from "@/components/ui/checkbox"; import { Input } from "@/components/ui/input"; @@ -65,8 +66,6 @@ export function WayfernConfigForm({ const [currentOS] = useState(getCurrentOS); const selectedOS = config.os || currentOS; - const isOSDifferent = selectedOS !== currentOS; - const isMobileOS = selectedOS === "android" || selectedOS === "ios"; useEffect(() => { if (isCreating && typeof window !== "undefined") { @@ -155,29 +154,23 @@ export function WayfernConfigForm({ - {osLabels.windows} - {osLabels.macos} - {osLabels.linux} - {osLabels.android} - {osLabels.ios} + {( + ["windows", "macos", "linux", "android", "ios"] as WayfernOS[] + ).map((os) => { + const isDisabled = os !== currentOS; + return ( + + + {osLabels[os]} + {isDisabled && ( + + )} + + + ); + })} - {isOSDifferent && !isMobileOS && ( - - - Warning: Selecting an OS different from your current system ( - {osLabels[currentOS]}) increases the risk of detection. - - - )} - {isMobileOS && ( - - - Warning: Mobile OS spoofing on desktop has high detection risk. - Websites can detect the mismatch between fingerprint and behavior. - - - )} {/* Randomize Fingerprint Option */} @@ -941,29 +934,29 @@ export function WayfernConfigForm({ - {osLabels.windows} - {osLabels.macos} - {osLabels.linux} - {osLabels.android} - {osLabels.ios} + {( + [ + "windows", + "macos", + "linux", + "android", + "ios", + ] as WayfernOS[] + ).map((os) => { + const isDisabled = os !== currentOS; + return ( + + + {osLabels[os]} + {isDisabled && ( + + )} + + + ); + })} - {isOSDifferent && !isMobileOS && ( - - - Warning: Selecting an OS different from your current system - ({osLabels[currentOS]}) increases the risk of detection. - - - )} - {isMobileOS && ( - - - Warning: Mobile OS spoofing on desktop has high detection - risk. - - - )} {/* Randomize Fingerprint Option */}