import { Dealer } from "@/contexts/sales/domain";
import { ISalesContext } from "@/contexts/sales/infrastructure/Sales.context";
import { IUpdateDealer_Response_DTO } from "@shared/contexts";

export interface IUpdateDealerPresenter {
  map: (dealer: Dealer, context: ISalesContext) => IUpdateDealer_Response_DTO;
}

export const UpdateDealerPresenter: IUpdateDealerPresenter = {
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
  map: (dealer: Dealer, context: ISalesContext): IUpdateDealer_Response_DTO => {
    return {
      id: dealer.id.toString(),
      name: dealer.name.toString(),
    };
  },
};
