import { AutocompleteItem, Select, Space, Title } from "@mantine/core" import React, { useEffect, useState } from "react" import { ipInterfacesQuery } from "../js/utils"; import PortInput from "./PortInput"; import { UseFormReturnType } from "@mantine/form/lib/types"; import { InterfaceInput } from "./InterfaceInput"; interface ItemProps extends AutocompleteItem { netint: string; } const AutoCompleteItem = React.forwardRef( ({ netint, value, ...props }: ItemProps, ref) =>
( {netint} ) -{">"} {value}
); export default function PortAndInterface({ form, int_name, port_name, label, orientation }:{ form:UseFormReturnType, int_name:string, port_name:string, label?:string, orientation?:"line"|"column" }) { return <> {label?<> {label} :null}
{(!orientation || orientation == "line")? <>:: }
}