import { Box, Space, Title } from "@mantine/core" import React from "react" import PortInput from "./PortInput"; import { UseFormReturnType } from "@mantine/form/lib/types"; import { InterfaceInput } from "./InterfaceInput"; type ItemProps = { value: string; netint: string; } & any const AutoCompleteItem = React.forwardRef( ({ netint, value, ...props }, 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")? <>:: } }