import type { PrintArea } from './types';

export const MOCKUP_OPTIONS = [
  { value: 'tshirt', label: 'T-shirt' },
  { value: 'hoodie', label: 'Hoodie' },
  { value: 'mug', label: 'Mug' },
  { value: 'tumbler', label: 'Tumbler' },
  { value: 'phonecase', label: 'Phone case' },
] as const;

// Print area is tuned per illustration, so new products reuse the same
// preset as whichever template they're based on rather than asking the
// admin to guess coordinates.
export const DEFAULT_PRINT_AREAS: Record<string, PrintArea> = {
  tshirt: { xPct: 0.32, yPct: 0.27, wPct: 0.36, hPct: 0.34 },
  hoodie: { xPct: 0.33, yPct: 0.34, wPct: 0.34, hPct: 0.28 },
  mug: { xPct: 0.22, yPct: 0.32, wPct: 0.56, hPct: 0.28 },
  tumbler: { xPct: 0.26, yPct: 0.28, wPct: 0.48, hPct: 0.36 },
  phonecase: { xPct: 0.28, yPct: 0.16, wPct: 0.44, hPct: 0.5 },
};
