diff --git a/frontend/src/app/scripts/_components/ScriptItems/InterFaces.tsx b/frontend/src/app/scripts/_components/ScriptItems/InterFaces.tsx index e5bab0e8..e8e0e9c9 100644 --- a/frontend/src/app/scripts/_components/ScriptItems/InterFaces.tsx +++ b/frontend/src/app/scripts/_components/ScriptItems/InterFaces.tsx @@ -2,11 +2,7 @@ import { Button, buttonVariants } from "@/components/ui/button"; import handleCopy from "@/components/handleCopy"; import { cn } from "@/lib/utils"; import { ClipboardIcon } from "lucide-react"; - -interface Item { - interface?: string; - port?: number; -} +import { Script } from "@/lib/types"; const CopyButton = ({ label, @@ -24,19 +20,18 @@ const CopyButton = ({ ); -export default function InterFaces({ item }: { item: Item }) { - const { interface: iface, port } = item; +export default function InterFaces({item} : {item : Script}) { return (
- {iface || (port && port !== 0) ? ( + {item.interface_port != null ? (

- {iface ? "Interface:" : "Default Port:"} + {"Default Interface:"}

{" "}
) : null}