clash-verge/src/components/connection-item.tsx

14 lines
282 B
TypeScript
Raw Normal View History

2021-12-25 17:33:29 +03:00
import { ApiType } from "../services/types";
interface Props {
value: ApiType.ConnectionsItem;
}
const ConnectionItem = (props: Props) => {
const { value } = props;
return <div>{value.metadata.host || value.metadata.destinationIP}</div>;
};
export default ConnectionItem;