ifixkart-storefront/lib/feedbackContent.ts

43 lines
1.2 KiB
TypeScript

export type FeedbackHighlight = {
id: string;
title: string;
detail: string;
};
export type FeedbackTopic = {
id: string;
label: string;
};
export function buildFeedbackPage(storeName: string) {
const brand = storeName || 'iFixKart';
return {
heading: 'Feedback',
intro: `Tell ${brand} what worked, what did not, or what we should add. We read every message and typically reply within one business day if you leave an email.`,
highlights: [
{
id: 'idea',
title: 'Share an idea',
detail: 'Suggest a product, repair, or website change.',
},
{
id: 'issue',
title: 'Report a problem',
detail: 'Orders, payments, delivery, or a page that did not work.',
},
{
id: 'praise',
title: 'Say thanks',
detail: 'A repair or delivery that went well helps us train the team.',
},
] as FeedbackHighlight[],
topics: [
{ id: 'order', label: 'Order or delivery' },
{ id: 'repair', label: 'Repair service' },
{ id: 'payment', label: 'Payment or refund' },
{ id: 'website', label: 'Website or app' },
{ id: 'suggestion', label: 'Suggestion' },
{ id: 'other', label: 'Other' },
] as FeedbackTopic[],
};
}