mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
feat(ocm-cli): workspace repo sync and manager token targeting (#233)
This commit is contained in:
1 parent
e12f319592
commit
a86e4b1238
69 files changed
+4858
-161
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { ErrorBanner } from '@/components/ui/error-banner'
|
||||
import { useSendErrorStore } from '@/stores/sendErrorStore'
|
||||
|
||||
interface SessionSendErrorBannerProps {
|
||||
sessionId: string | undefined
|
||||
}
|
||||
|
||||
export function SessionSendErrorBanner({ sessionId }: SessionSendErrorBannerProps) {
|
||||
const sendError = useSendErrorStore((s) => sessionId ? s.errors[sessionId] : null)
|
||||
const clearSendError = useSendErrorStore((s) => s.clearError)
|
||||
|
||||
if (!sendError || !sessionId) return null
|
||||
|
||||
return (
|
||||
<ErrorBanner
|
||||
title={sendError.title}
|
||||
summary={sendError.message}
|
||||
detail={sendError.detail}
|
||||
onDismiss={() => clearSendError(sessionId)}
|
||||
className="mb-2"
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user