'use client'; import { FC, useCallback, useState } from 'react'; import clsx from 'clsx'; import { useVariables } from '@gitroom/react/helpers/variable.context'; import { useUser } from '@gitroom/frontend/components/layout/user.context'; import { useT } from '@gitroom/react/translation/get.transation.service.client'; const useFaqList = () => { const { isGeneral } = useVariables(); const user = useUser(); const t = useT(); return [ ...(user?.allowTrial ? [ { title: t( 'faq_am_i_going_to_be_charged_by_postiz', 'Am I going to be charged by Postiz?' ), description: t( 'faq_to_confirm_credit_card_information_postiz_will_hold', 'To confirm credit card information Postiz will hold $2 and release it immediately' ), }, ] : []), { title: t( 'faq_can_i_trust_postiz_gitroom', `Can I trust ${isGeneral ? 'Postiz' : 'Gitroom'}?` ), description: t( 'faq_postiz_gitroom_is_proudly_open_source', `${ 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: t('faq_what_are_channels', 'What are channels?'), description: t( 'faq_postiz_gitroom_allows_you_to_schedule_posts', `${ 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: t('faq_what_are_team_members', 'What are team members?'), description: t( 'faq_if_you_have_a_team_with_multiple_members', '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' ), }, ]; }; 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 (