Files
ota-admin-portal/src/components/Cars/Status/RemoteCommandsTab.jsx
2022-09-07 23:21:57 +06:00

26 lines
712 B
JavaScript

import useStyles from "../../useStyles";
import clsx from "clsx";
import Typography from "@material-ui/core/Typography";
import SendCommand from "../../Controls/SendCommand";
import PropTypes from "prop-types";
import {VehicleProvider} from "../../Contexts/VehicleContext";
const RemoteCommandsTab = (props) => {
const { vin } = props;
const classes = useStyles();
return (
<div className={clsx(classes.paper, classes.tableSize)}>
<Typography variant="h6">Vehicle Commands</Typography>
<VehicleProvider>
<SendCommand vins={[vin]}></SendCommand>
</VehicleProvider>
</div>
)
}
RemoteCommandsTab.propTypes = {
vin: PropTypes.string,
}
export default RemoteCommandsTab