ifixkart-storefront/lib/helpCenterContent.ts

115 lines
3.5 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export type HelpTopic = {
id: string;
title: string;
detail: string;
href: string;
};
export type HelpSection = {
id: string;
title: string;
paragraphs: string[];
};
export type HelpDoc = {
heading: string;
intro: string;
topics: HelpTopic[];
faqLinks: { title: string; href: string; detail: string }[];
sections: HelpSection[];
};
export function buildHelpDoc(storeName: string): HelpDoc {
const brand = storeName || 'iFixKart';
return {
heading: 'Help Center',
intro: `Find answers about ${brand} orders, repairs, payments, and returns. Start with a topic below or contact support if you still need a person.`,
topics: [
{
id: 'faqs',
title: 'FAQs',
detail: 'Common questions on refurbished phones, repairs, and exchange.',
href: '/faqs',
},
{
id: 'orders',
title: 'Track order',
detail: 'Check repair and order status after you sign in.',
href: '/services/tracking',
},
{
id: 'payments',
title: 'Payments',
detail: 'Cards, UPI, net banking, failed charges, and refunds.',
href: '/payments',
},
{
id: 'returns',
title: 'Returns',
detail: 'Return windows, dead-on-arrival, pickup, and warranty claims.',
href: '/returns',
},
{
id: 'repairs',
title: 'Repairs',
detail: 'Book a screen, battery, or other device repair.',
href: '/repair-services',
},
{
id: 'shop',
title: 'Shop',
detail: 'Browse refurbished phones, parts, and accessories.',
href: '/shop',
},
],
faqLinks: [
{
title: 'Refurbished mobiles',
href: '/faqs/refurbished-mobiles',
detail: 'Invoices, warranty, delivery, and payment modes.',
},
{
title: 'Mobile repair',
href: '/faqs/mobile-repair',
detail: 'Bookings, parts warranty, and how long a job takes.',
},
{
title: 'Exchange',
href: '/faqs/mobile-exchange',
detail: 'Quotes, pickup of your old phone, and locked devices.',
},
{
title: 'Accessories',
href: '/faqs/mobile-accessories',
detail: 'Fit, warranty, and returning unused accessories.',
},
],
sections: [
{
id: 'before',
title: 'Before you write to us',
paragraphs: [
'Keep your order number, registered phone or email, and a photo of the invoice. For a damaged or dead device, a short video of the issue speeds up the reply.',
`Most delivery, payment, and return questions are answered on FAQs, Payments, and Returns. Use those pages first if you can.`,
],
},
{
id: 'hours',
title: 'Support hours',
paragraphs: [
'Customer support is available Monday to Saturday, 10:00 AM 6:30 PM. Messages sent on Sunday or a public holiday are picked up the next working day.',
'We typically respond within one business day. Repair tracking updates also go out by SMS and email when a technician is assigned.',
],
},
{
id: 'who',
title: 'Who to contact',
paragraphs: [
'Order, invoice, and delivery questions: use the support email or phone on this page.',
'Warranty and return pickups: returns@ifixkart.com with your order number.',
'Active repair jobs: Track Order after you sign in, or call if a visit is already scheduled.',
],
},
],
};
}