import { BookOpen, ExternalLink } from 'lucide-react'; import type { ChannelMeta } from '../../lib/channel-meta'; type ChannelInstructionsPanelProps = { meta: ChannelMeta; title: string; viewDocsLabel: string; }; export default function ChannelInstructionsPanel({ meta, title, viewDocsLabel, }: ChannelInstructionsPanelProps) { const canOpenDocs = Boolean(meta.docsUrl); function openDocs(): void { if (!meta.docsUrl) return; try { if (window.electron?.openExternal) { window.electron.openExternal(meta.docsUrl); return; } } catch { // Fall back to window.open below. } window.open(meta.docsUrl, '_blank', 'noopener,noreferrer'); } return (

{title}

{meta.description}

{canOpenDocs ? ( ) : null}
{meta.instructions.length > 0 ? (
    {meta.instructions.map((instruction) => (
  1. {instruction}
  2. ))}
) : null}
); }