Added announcement adding page
This commit is contained in:
12
front/src/hooks/api/useTrashboxes.js
Normal file
12
front/src/hooks/api/useTrashboxes.js
Normal file
@ -0,0 +1,12 @@
|
||||
import { API_URL } from "../../config"
|
||||
import useFetch from "./useFetch"
|
||||
|
||||
const useTrashboxes = (position) => {
|
||||
return useFetch(
|
||||
API_URL + "/trashbox?" + new URLSearchParams({ lat: position.lat, lng: position.lng }),
|
||||
undefined,
|
||||
[]
|
||||
)
|
||||
}
|
||||
|
||||
export default useTrashboxes
|
Reference in New Issue
Block a user