/**
 * TeamLogoViewDataBuilder
 *
 * Transforms MediaBinaryDTO into TeamLogoViewData for server-side rendering.
 * Deterministic; side-effect free; no HTTP calls.
 */

import { MediaBinaryDTO } from '@/lib/types/MediaBinaryDTO';
import { TeamLogoViewData } from '@/lib/view-data/TeamLogoViewData';

export class TeamLogoViewDataBuilder {
  static build(apiDto: MediaBinaryDTO): TeamLogoViewData {
    return {
      buffer: Buffer.from(apiDto.buffer).toString('base64'),
      contentType: apiDto.contentType,
    };
  }
}