import { Metadata } from 'next'; import { HelpCircle, MessageCircle, BookOpen, Lightbulb, Mail, Github, ChevronDown } from 'lucide-react'; export const metadata: Metadata = { title: 'Help Center | OpenStock', description: 'Community-driven support for OpenStock. No paywalls, just help.', }; export default function HelpPage() { const faqs = [ { question: "Is OpenStock really free forever?", answer: "Yes! We run on donations and community contribution. Core features (tracking, alerts, analysis) will remain free. We believe financial tools shouldn't be luxury items." }, { question: "How do I add stocks to my watchlist?", answer: "Use the search bar at the top or in the header to find a company. On the stock's detail page, click the 'Heart' or 'Star' icon to instantly add it to your dashboard." }, { question: "Where does the market data come from?", answer: "We partner with Finnhub and other providers to offer real-time and delayed data. While robust, please use it for analysis rather than high-frequency trading." }, { question: "Can I contribute code or designs?", answer: "Absolutely! Check our GitHub repository. We label issues as 'good first issue' for beginners. We welcome designers, developers, and writers alike." }, { question: "My alerts aren't triggering.", answer: "Alerts run every 5 minutes via our background jobs. Ensure you've confirmed your email address, as we send notifications primarily via email." } ]; return (
{/* Header */}

How can we help?

Community-powered support for everyone.

{/* Quick Action Grid */}
} title="Read Docs" desc="Deep dive into features and API integration." link="/api-docs" linkText="View Documentation" /> } title="Community Chat" desc="Get real-time answers from other users." link="https://discord.gg/JkJ8kfxgxB" linkText="Join Discord" /> } title="Report Bugs" desc="Found an issue? Let our developers know." link="https://github.com/Open-Dev-Society/OpenStock/issues" linkText="Open Issue" />
{/* FAQs */}

Frequently Asked Questions

{faqs.map((faq, idx) => (

{faq.question}

{faq.answer}

))}
{/* Direct Contact */}

Still stuck?

Our team (and community) answers emails, usually entirely for free.

Contact Support
); } function HelpCard({ icon, title, desc, link, linkText }: any) { return (
{icon}

{title}

{desc}

{linkText}
); }