import { Link } from "react-router-dom"; import { Col, Card, Popconfirm } from "antd"; import { PlusOutlined, EditOutlined, DeleteOutlined } from "@ant-design/icons"; import { Application, DeletePilotThingsIntegrationRequest, } from "@chirpstack/chirpstack-api-grpc-web/api/application_pb"; import ApplicationStore from "../../../stores/ApplicationStore"; interface IProps { application: Application; add?: boolean; } function PilotThingsCard(props: IProps) { const onDelete = () => { let req = new DeletePilotThingsIntegrationRequest(); req.setApplicationId(props.application.getId()); ApplicationStore.deletePilotThingsIntegration(req, () => {}); }; let actions: any[] = []; if (!!props.add) { actions = [ , ]; } else { actions = [ , , ]; } return ( } actions={actions} > ); } export default PilotThingsCard;