import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger
} from '@/components/ui/accordion'
import { Keyboard, Layout, MessageSquare, Settings, User, Zap } from 'lucide-react'
import { useTranslation } from 'react-i18next'
export default function Help() {
const { t } = useTranslation()
return (
{t('Keyboard Navigation')}
{t('Navigate the app entirely with your keyboard:')}
{t('Toggle Keyboard Mode:')}
{t('You can also click the keyboard button in the sidebar to toggle.')}
{t('Movement:')}
{t('Actions:')}
{t('Note Actions (when a note is selected):')}
{t('Selected items are centered on screen for easy viewing.')}
{t('Layout & Navigation')}
{t('The app uses a multi-column layout:')}
- {t('Sidebar: Quick access to main sections')}
- {t('Primary column: Feed, notifications, inbox, search')}
- {t('Secondary column: Note details, user profiles, relay info')}
{t('On mobile or single-column mode, pages stack on top of each other.')}
{t('Use the columns button at the bottom of the sidebar to switch between layouts.')}
{t('Posting & Interactions')}
{t('Creating Posts:')}
- {t('Click the post button in the sidebar to compose a new note')}
- {t('Use @ to mention users and # for hashtags')}
- {t('Drag and drop images or use the attachment button')}
{t('Interacting with Notes:')}
- {t('Reply: Continue the conversation')}
- {t('Repost: Share to your followers')}
- {t('Quote: Repost with your own comment')}
- {t('React: Like or add emoji reactions')}
- {t('Zap: Send Bitcoin tips via Lightning')}
{t('Zaps & Lightning')}
{t('Zaps are Bitcoin tips sent via the Lightning Network:')}
- {t('To receive zaps, add a Lightning address to your profile')}
- {t('To send zaps, connect a Lightning wallet in Settings')}
- {t('Click the zap icon on any note to send sats')}
- {t('Long-press for custom zap amounts')}
{t('Supported wallets include Alby, NWC-compatible wallets, and Cashu mints.')}
{t('Account & Login')}
{t('Nostr uses public/private key pairs for identity:')}
- npub: {t('Your public key (share freely)')}
- nsec: {t('Your private key (keep secret!)')}
{t('Login Methods:')}
- {t('Browser Extension (NIP-07)')}: {t('Recommended. Uses extensions like Alby or nos2x')}
- {t('Remote Signer (NIP-46)')}: {t('Connect to bunker signers like Amber or nsecBunker')}
- {t('Private Key')}: {t('Enter nsec directly (less secure)')}
- {t('View Only')}: {t('Browse with an npub without signing')}
{t('Settings Overview')}
- {t('General')}: {t('Language, content preferences, mutes')}
- {t('Appearance')}: {t('Theme, layout, visual options')}
- {t('Relays')}: {t('Configure which relays to read from and write to')}
- {t('Posts')}: {t('Posting preferences and default settings')}
- {t('Wallet')}: {t('Lightning wallet connection for zaps')}
- {t('Emoji Packs')}: {t('Custom emoji sets')}
- {t('System')}: {t('Debug tools and app information')}
)
}
function KeyBinding({
keys,
altKeys,
description
}: {
keys: string[]
altKeys?: string[]
description: string
}) {
return (
{keys.map((key) => (
{key}
))}
{altKeys && (
<>
/
{altKeys.map((key) => (
{key}
))}
>
)}
{description}
)
}