import { useState } from 'react' import { AtUriBrowser, useAtUriBrowser } from './components/AtUriBrowser' import './App.css' function BrowserContent() { const [handle, setHandle] = useState('') const { records, currentRecord, setCurrentRecord, loading, error, loadHandle } = useAtUriBrowser() const handleSubmit = async (e: React.FormEvent) => { e.preventDefault() if (handle) { await loadHandle(handle) } } return (
Error: {error}
URI: {currentRecord.uri}
Created: {new Date(currentRecord.value.createdAt).toLocaleString()}
{currentRecord.value.content}
Browse AT Protocol records directly from the PDS.