/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-explicit-any */

// import { type SharedData } from '@/types';
import { Head } from '@inertiajs/react';
import Navbar from '@/components/landingpage/navbar';
import Hero from '@/components/landingpage/hero';
import CryptoTicker from '@/components/landingpage/crypto-ticker';
import Intro from '@/components/landingpage/intro';
import GetStarted from '@/components/landingpage/get-started';
import WhyChooseUs from '@/components/landingpage/why-choose-us';
import CryptoMarkets from '@/components/landingpage/crypto-markets';
import AppComponent from '@/components/landingpage/app';
import Testimonials from '@/components/landingpage/testimonials';
import GetStartedBanner from '@/components/landingpage/banner';
import Footer from '@/components/landingpage/footer';
import RiskManagementFramework from '@/components/landingpage/risk-management';
import {usePage} from '@inertiajs/react';
import LandingPageFaqs from '@/components/landingpage/page-faqs';

export default function Welcome() {
    const { testimonials, faqs, appSettings } = usePage().props as any;

    const demofaqs = [
    {
        id: 1,
        question: "What is TraderPlus?",
        answer:
        "TraderPlus is a digital investment platform that provides access to professionally managed forex and cryptocurrency investment opportunities, educational resources, and trading signals designed to help investors grow their portfolios.",
    },
    {
        id: 2,
        question: "How do I get started?",
        answer:
        "Simply create an account, complete your profile verification, fund your wallet, and choose an investment or signal plan that aligns with your financial goals and risk tolerance.",
    },
    {
        id: 3,
        question: "Is my investment secure?",
        answer:
        "TraderPlus employs industry-standard security practices, encrypted communication, and strict account protection measures to safeguard user information and platform activities.",
    },
    {
        id: 4,
        question: "What payment methods are supported?",
        answer:
        "You can fund your account using supported cryptocurrency wallets and other payment methods made available on the platform, depending on your region.",
    },
    {
        id: 5,
        question: "How long do withdrawals take?",
        answer:
        "Withdrawal requests are reviewed and processed within the platform's stated processing period. Processing times may vary depending on verification requirements and the selected payment method.",
    },
    {
        id: 6,
        question: "Do I need trading experience?",
        answer:
        "No. TraderPlus is designed for both beginners and experienced investors. New users can take advantage of educational materials, managed investment plans, and copy trading features to get started confidently.",
    },
    ];

    return (
        <>
            <Head title={ appSettings?.website_title || "Welcome to our app" }>
                <link rel="preconnect" href="https://fonts.bunny.net" />
                <link
                    href="https://fonts.bunny.net/css?family=instrument-sans:400,500,600"
                    rel="stylesheet"
                />
            </Head>
            <Navbar />
            <Hero />
            <CryptoTicker />
            <Intro />
            <GetStarted />
            <WhyChooseUs />
            <CryptoMarkets />
            <AppComponent />
            <RiskManagementFramework />
            {/* { testimonials?.length > 0 ? <Testimonials testimonials={testimonials} /> : null } */}
            <Testimonials testimonials={testimonials} /> 
            {/* { faqs?.length > 0 ? <LandingPageFaqs faqs={faqs} /> : null } */}
            <LandingPageFaqs faqs={demofaqs} /> 
            <GetStartedBanner />
            <Footer />
        </>
    );
}
