import React, { useEffect, useState } from 'react' import { Button } from '@janhq/uikit' import { CopyIcon, CheckIcon } from 'lucide-react' import { useClipboard } from '@/hooks/useClipboard' import { useLogs } from '@/hooks/useLogs' // TODO @Louis help add missing information device specs const DeviceSpecs = () => { const { getLogs } = useLogs() const [logs, setLogs] = useState([]) useEffect(() => { getLogs('app').then((log) => { if (typeof log?.split === 'function') { setLogs( log.split(/\r?\n|\r|\n/g).filter((e) => e.includes('[SPECS]::')) ) } }) // eslint-disable-next-line react-hooks/exhaustive-deps }, []) const clipboard = useClipboard({ timeout: 1000 }) return ( <>
{logs.map((log, i) => { return (

{log}

) })}
) } export default DeviceSpecs