/** Page paths. */
export const routes = {
	home: '/',
	cardPayment: '/bankkartyas-fizetes/',
	contact: '/kapcsolat/',
	privacy: '/adatkezelesi-tajekoztato/',
} as const;

/** Section anchors shared by the navigation and the page sections. */
export const sections = {
	howItWorks: 'hogyan-mukodik',
	pricing: 'arak',
	faq: 'gyik',
} as const;

/** Pages with their own FAQ section; elsewhere (e.g. the 404 page) the FAQ link leads to the home page's. */
const pagesWithFaq: string[] = [routes.home, routes.cardPayment, routes.contact];

/** Main navigation, shared by the header and the mobile menu. */
export function getNavItems(currentPath: string) {
	const faqPage = pagesWithFaq.includes(currentPath) ? '' : routes.home;

	return [
		{ key: 'howItWorks', href: `${routes.home}#${sections.howItWorks}` },
		{ key: 'cardPayment', href: routes.cardPayment },
		{ key: 'faq', href: `${faqPage}#${sections.faq}` },
	] as const;
}

export const contact = {
	email: 'hello@legyennyugta.hu',
	emailHref: 'mailto:hello@legyennyugta.hu',
};

/**
 * External links.
 * TODO: the store and printer shop URLs are not in the Figma file yet.
 */
export const links = {
	appStore: 'https://apps.apple.com/hu/app/id6828761853',
	playStore: 'https://play.google.com/store/apps/details?id=com.paynance.nyugta.release',
	printerShop: 'https://www.penztargepcentrum.hu/webaruhaz/blokknyomtatok/polpos-mp20',
};
