import { useState } from "react";
import { useSelector, useDispatch } from "react-redux";
import { Button, Offcanvas } from "react-bootstrap";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faCommentDots, faCommentSlash } from "@fortawesome/free-solid-svg-icons";
import { fetchBuiAlarmStateByBaja } from "@STORE";
function AlarmOffcanvas() {
const dispatch = useDispatch();
const { selectedBuiArea, selectedBuiTag } = useSelector((state) => state.buildingInfo);
// alarm
const [showAlarm, setShowAlarm] = useState(false);
const getAlarmList = () => {
dispatch(fetchBuiAlarmStateByBaja(selectedBuiArea, selectedBuiTag));
setShowAlarm(!showAlarm);
};
return (
<>
{
setShowAlarm(false);
}}
placement="end"
>
Offcanvas
Some text as placeholder. In real life you can have the elements you have chosen. Like,
text, images, lists, etc.
>
);
}
export default AlarmOffcanvas;