'use client'; import { FC, useCallback, useState } from 'react'; import clsx from 'clsx'; import interClass from '@gitroom/react/helpers/inter.font'; import { useVariables } from '@gitroom/react/helpers/variable.context'; import { useUser } from '@gitroom/frontend/components/layout/user.context'; const useFaqList = () => { const { isGeneral } = useVariables(); const user = useUser(); return [ ...(user?.allowTrial ? [ { title: 'Am I going to be charged by Postiz?', description: 'To confirm credit card information Postiz will hold $2 and release it immediately', }, ] : []), { title: `Can I trust ${isGeneral ? 'Postiz' : 'Gitroom'}?`, description: `${ isGeneral ? 'Postiz' : 'Gitroom' } is proudly open-source! We believe in an ethical and transparent culture, meaning that ${ isGeneral ? 'Postiz' : 'Gitroom' } will live forever. You can check out the entire code or use it for personal projects. To view the open-source repository, click here.`, }, { title: 'What are channels?', description: `${ isGeneral ? 'Postiz' : 'Gitroom' } allows you to schedule your posts between different channels. A channel is a publishing platform where you can schedule your posts. For example, you can schedule your posts on X, Facebook, Instagram, TikTok, YouTube, Reddit, Linkedin, Dribbble, Threads and Pinterest.`, }, { title: 'What are team members?', description: `If you have a team with multiple members, you can invite them to your workspace to collaborate on your posts and add their personal channels`, }, { title: 'What is AI auto-complete?', description: `We automate ChatGPT to help you write your social posts and articles`, }, ]; }; export const FAQSection: FC<{ title: string; description: string }> = ( props ) => { const { title, description } = props; const [show, setShow] = useState(false); const changeShow = useCallback(() => { setShow(!show); }, [show]); return (
{title}
{!show ? ( ) : ( )}
 {
            e.stopPropagation();
          }}
          className={`mt-[16px] w-full text-wrap ${interClass} font-[400] text-[16px] text-customColor17 select-text`}
          dangerouslySetInnerHTML={{ __html: description }}
        />
      
); }; export const FAQComponent: FC = () => { const list = useFaqList(); return (

Frequently Asked Questions

{list.map((item, index) => ( ))}
); };