mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
Initial release v0.2.5
This commit is contained in:
commit
bbf66c259b
158 files changed
+37115
No files matched your search
@@ -0,0 +1,30 @@
|
||||
import { DeleteDialog } from '@/components/ui/delete-dialog'
|
||||
|
||||
interface DeleteSessionDialogProps {
|
||||
open: boolean
|
||||
onOpenChange: (open: boolean) => void
|
||||
onConfirm: () => void
|
||||
onCancel: () => void
|
||||
isDeleting?: boolean
|
||||
sessionCount?: number
|
||||
}
|
||||
|
||||
export function DeleteSessionDialog({ open, onOpenChange, onConfirm, onCancel, isDeleting = false, sessionCount = 1 }: DeleteSessionDialogProps) {
|
||||
const isMultiple = sessionCount > 1
|
||||
const title = isMultiple ? "Delete Sessions" : "Delete Session"
|
||||
const description = isMultiple
|
||||
? `Are you sure you want to delete ${sessionCount} sessions? This action cannot be undone.`
|
||||
: "Are you sure you want to delete this session? This action cannot be undone."
|
||||
|
||||
return (
|
||||
<DeleteDialog
|
||||
open={open}
|
||||
onOpenChange={onOpenChange}
|
||||
onConfirm={onConfirm}
|
||||
onCancel={onCancel}
|
||||
title={title}
|
||||
description={description}
|
||||
isDeleting={isDeleting}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user