mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
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.
20 lines
530 B
TypeScript
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>
|
|
)
|
|
}
|