export type GalleryStatus = "pending" | "approved" | "rejected" | "hidden" | "withdrawn"

export interface GalleryCardDto {
  id: number
  title: string
  /** The public copy; null until approved. */
  image: string | null
  width: number | null
  height: number | null
  artist: string
  category: { key: string; title: string } | null
  critiqued: boolean
  likes_count: number
  liked: boolean
  mine: boolean
  status: GalleryStatus | null
  status_label: string | null
  rejection_reason: string | null
  published_at: string | null
  created_at: string | null
  /** «گالری من» only: the owner's private photo while it waits (signed, short-lived). */
  preview?: string | null
}

export interface GalleryPieceDto extends GalleryCardDto {
  caption: string | null
  course: { id: number; title: string } | null
  coach_review: { coach: string | null; summary: string } | null
  preview: string | null
}

export interface GalleryLikeDto {
  likes_count: number
  liked: boolean
}

export type GallerySourceType = "practice" | "submission"
