import { useState } from 'react' import ScrollToBottom from 'react-scroll-to-bottom' import { Modal, ModalContent, ModalHeader, ModalTitle } from '@janhq/uikit' import { motion as m } from 'framer-motion' import { atom, useAtom } from 'jotai' import { twMerge } from 'tailwind-merge' import ServerLogs from '../ServerLogs' import AppLogs from './AppLogs' import DeviceSpecs from './DeviceSpecs' export const modalTroubleShootingAtom = atom(false) const logOption = ['App Logs', 'Server Logs', 'Device Specs'] const ModalTroubleShooting: React.FC = () => { const [modalTroubleShooting, setModalTroubleShooting] = useAtom( modalTroubleShootingAtom ) const [isTabActive, setIsTabActivbe] = useState(0) return ( Troubleshooting Assistance

{`We're here to help! Your report is crucial for debugging and shaping the next version. Here’s how you can report & get further support:`}

Step 1

Follow our  troubleshooting guide  for step-by-step solutions.

Step 2

{`If you can't find what you need in our troubleshooting guide, feel free reach out to us for extra help:`}

  • Copy your 2-hour logs & device specifications provided below.{' '}

  • Go to our  Discord  & send it to #🆘|get-help channel for further support.

{/* TODO @faisal replace this once we have better tabs component UI */}
    {logOption.map((name, i) => { return (
  • setIsTabActivbe(i)} > {name} {isTabActive === i && ( )}
  • ) })}
{isTabActive === 0 && } {isTabActive === 1 && } {isTabActive === 2 && }
) } export default ModalTroubleShooting