Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
19 lines
972 B
TypeScript
19 lines
972 B
TypeScript
/**
|
|
* Single source of truth for the platform's public contact number.
|
|
* Was previously hardcoded independently in 5 places (frontend/app/(public)/{layout.tsx,contact/page.tsx},
|
|
* frontend/components/public/{ContactForm.tsx,PublicFooter.tsx}, frontend/e2e/shared/public-pages.spec.ts)
|
|
* -- a number change would have needed a coordinated grep-and-replace across all of them.
|
|
*/
|
|
export const SITE_PHONE = '+989153641196'
|
|
|
|
/** Digits-only form, for `tel:`/`wa.me` links that don't want the leading `+`. */
|
|
export const SITE_PHONE_DIGITS = SITE_PHONE.slice(1)
|
|
|
|
export const SITE_WHATSAPP_URL = (text: string) => `https://wa.me/${SITE_PHONE_DIGITS}?text=${text}`
|
|
|
|
/** Official support profiles — used in footer + Organization `sameAs`. */
|
|
export const SITE_INSTAGRAM_URL = 'https://www.instagram.com/Ghabilee_support/'
|
|
export const SITE_TELEGRAM_URL = 'https://t.me/Ghabilee_support'
|
|
|
|
export const SITE_SOCIAL_SAME_AS = [SITE_INSTAGRAM_URL, SITE_TELEGRAM_URL] as const
|