import type {MerchantProfile} from '@/features/settings/types/settings';

/**
 * The merchant account.
 *
 * A plain reader rather than a generator — settings are configuration, not
 * sampled data, so there is nothing to seed. It is exported as a function so
 * the Settings page can call it DIRECTLY from a Server Component (no HTTP hop)
 * while the route handler serves the same object over the wire. One source,
 * two transports.
 */
export function readProfile(): MerchantProfile {
  return {
    businessName: 'Loyaly Retail Pvt Ltd',
    contactName: 'Aravind',
    email: 'aravind@nearle.in',
    phone: '+91 98450 12345',
    gstin: '29AABCL1234M1Z7',
    timezone: 'Asia/Kolkata',
    currency: 'INR',
    lytsPerHundred: 5,
    notifications: {
      expiryAlerts: true,
      dailySummary: true,
      staffAbsence: false,
      lowConversion: true,
    },
  };
}
