Files
opencode-manager/frontend/src/components/message/ToolMenuItemContent.tsx
T
Chris Scott 95a9f6e1ed feat(sandbox): add the session sandbox control to the desktop composer
The sandbox toggle and resources dialog were only reachable from the mobile composer menu. Add SessionSandboxMenu next to the permission toggle on desktop and share the sandbox menu items with the mobile menu.
2026-10-15 16:53:49 -04:00

20 lines
530 B
TypeScript

import type { ReactNode } from 'react'
interface ToolMenuItemContentProps {
icon: ReactNode
title: string
detail?: string
}
export function ToolMenuItemContent({ icon, title, detail }: ToolMenuItemContentProps) {
return (
<span className="flex items-start gap-2">
<span className="mt-0.5 shrink-0">{icon}</span>
<span className="flex min-w-0 flex-col">
<span>{title}</span>
{detail ? <span className="text-xs text-muted-foreground">{detail}</span> : null}
</span>
</span>
)
}