import { FC } from "react"; import { useDispatch } from "react-redux"; import SearchableList from "components/SearchableList"; import RoomListEntry from "modules/room/RoomListEntry"; import { RoomSliceState, roomGetAll } from "modules/room/slice"; const SearchableRoomList = SearchableList(RoomListEntry); const RoomList: FC = ({ rooms }) => { const dispatch = useDispatch(); const refresh = () => { dispatch(roomGetAll()); }; return ; }; export default RoomList;