import { useState } from 'react' import { Button, Modal } from '@janhq/joi' import { atom, useAtom } from 'jotai' import { Maximize2 } from 'lucide-react' import { twMerge } from 'tailwind-merge' import ServerLogs from '@/containers/ServerLogs' import AppLogs from './AppLogs' import CortexLogs from './CortexLogs' import DeviceSpecs from './DeviceSpecs' export const modalTroubleShootingAtom = atom(false) const logOption = ['App Logs', 'Cortex Logs', 'Server Logs', 'Device Specs'] const ModalTroubleShooting = () => { const [modalTroubleShooting, setModalTroubleShooting] = useAtom( modalTroubleShootingAtom ) const [isTabActive, setIsTabActivbe] = useState(0) const [showLogFullSize, setshowLogFullSize] = useState(false) return (

{`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:`}

{!showLogFullSize && (

Step 1

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

)}
{!showLogFullSize && (

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 #🆘|jan-help channel for further support.

)}
    {logOption.map((name, i) => { return (
  • setIsTabActivbe(i)} > {name}
  • ) })}
} /> ) } export default ModalTroubleShooting