import type { Place, PlacePayload } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type ModifyPlaceInput = { placeId: string payload: PlacePayload } const modifyPlace = (http: HttpClient) => ({ query: ( input: ModifyPlaceInput, ): Promise> => { return http.put(`v3/admin/places/${input.placeId}`, input.payload) }, }) export default modifyPlace