import { useState } from "react";
import FireDeviceListPanel from "./FireDeviceListPanel";
import FireSearchPanel from "./FireSearchPanel";

/** 消防模块负责协调查询条件与设备列表之间的参数传递。 */
function XiaoFang() {
  const [queryParams, setQueryParams] = useState({});

  return (
    <div className="port-fire">
      <FireSearchPanel onSearch={setQueryParams} />
      <FireDeviceListPanel queryParams={queryParams} />
    </div>
  );
}

export default XiaoFang;
