31 lines · 1021 B · TypeScript
RawDownload
import { memo } from "react";import { type PendingApproval } from "../../session-logic"; interface ComposerPendingApprovalPanelProps {  approval: PendingApproval;  pendingCount: number;} export const ComposerPendingApprovalPanel = memo(function ComposerPendingApprovalPanel({  approval,  pendingCount,}: ComposerPendingApprovalPanelProps) {  const approvalSummary =    approval.requestKind === "command"      ? "Command approval requested"      : approval.requestKind === "file-read"        ? "File-read approval requested"        : "File-change approval requested";   return (    <div className="px-4 py-3.5 sm:px-5 sm:py-4">      <div className="flex flex-wrap items-center gap-2">        <span className="uppercase text-sm tracking-[0.2em]">PENDING APPROVAL</span>        <span className="text-sm font-medium">{approvalSummary}</span>        {pendingCount > 1 ? (          <span className="text-xs text-muted-foreground">1/{pendingCount}</span>        ) : null}      </div>    </div>  );});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t