export type UploadOptions = {
  aspectRatio?: number;
  watermarkText?: string;
  maxWidth?: number;
  maxHeight?: number;
  quality?: number;
};

const presetsBySlug: Record<string, UploadOptions> = {
  // 제휴업소 사진형 보드: 정사각형 권장, 워터마크 표시
  "partners-photos": { aspectRatio: 1, watermarkText: "msgapp", maxWidth: 1600, maxHeight: 1600, quality: 0.9 },
  // 방문후기: 4:3 비율 권장, 워터마크 없음
  reviews: { aspectRatio: 4 / 3, maxWidth: 1920, maxHeight: 1920, quality: 0.9 },
};

const defaultPreset: UploadOptions = { maxWidth: 1600, maxHeight: 1600, quality: 0.9 };

export function getPhotoPresetBySlug(slug?: string | null): UploadOptions {
  if (!slug) return defaultPreset;
  return presetsBySlug[slug] ?? defaultPreset;
}


