import type { Area } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type AddDuplicateArea = { houseId: string areaId: string area: { name_fr: string; name_en: string } } const addAreaDuplicate = (http: HttpClient) => ({ query: ( input: AddDuplicateArea, ): Promise> => { return http.post( `v3/admin/houses/${input.houseId}/areas/${input.areaId}/duplicate_areas`, { area: input.area, }, ) }, }) export default addAreaDuplicate