import { GetProfileUseCase } from "@/contexts/profile/application/GetProfile.useCase";
import { IProfileContext } from "../../../Profile.context";
import { registerProfileRepository } from "../../../Profile.repository";
import { GetProfileLogoController } from "./GetProfileLogo.controller";
import { GetProfileLogoPresenter } from "./presenter";

export const createGetProfileLogoController = (context: IProfileContext) => {
  registerProfileRepository(context);

  return new GetProfileLogoController(
    {
      useCase: new GetProfileUseCase(context),
      presenter: GetProfileLogoPresenter,
    },
    context
  );
};
