import { Page, Layout, Card, Text, BlockStack, Link, Button, Collapsible, } from "@shopify/polaris"; import { TitleBar } from "@shopify/app-bridge-react"; import { useState, useCallback } from "react"; import { authenticate } from "../shopify.server"; export const loader = async ({ request }) => { await authenticate.admin(request); return null; }; export default function HelpPage() { const [openIndex, setOpenIndex] = useState(null); const toggle = useCallback((index) => { setOpenIndex((prev) => (prev === index ? null : index)); }, []); const faqs = [ { title: "📌 How do I connect my Turn14 account?", content: "Go to the Settings page, enter your Turn14 Client ID and Secret, then click 'Save & Connect'. A green badge will confirm successful connection.", }, { title: "📦 Where can I import brands from?", content: "Use the 'Brands' tab in the left menu to view and import available brands from Turn14 into your Shopify store.", }, { title: "🔄 How do I sync brand collections?", content: "In the 'Manage Brands' section, select the brands and hit 'Sync to Shopify'. A manual collection will be created or updated.", }, { title: "🔐 Is my Turn14 API key secure?", content: "Yes. The credentials are stored using Shopify’s encrypted storage (metafields), ensuring they are safe and secure.", }, ]; return ( Need Help? You’re in the Right Place! This section covers frequently asked questions about the Data4Autos Turn14 integration app. {faqs.map((faq, index) => (
{faq.content}
))} Still have questions? Email us at{" "} support@data4autos.com
); }