Skip to content

@sqlrooms/ai / DeleteSessionDialog

Function: DeleteSessionDialog()

DeleteSessionDialog(props): ReactNode | Promise<ReactNode>

Dialog component for confirming session deletion. Displays a warning message and provides cancel/delete buttons.

Parameters

ParameterType
propsDeleteSessionDialogProps

Returns

ReactNode | Promise<ReactNode>

Example

tsx
<DeleteSessionDialog
  isOpen={true}
  onClose={() => console.log("Dialog closed")}
  onDelete={() => console.log("Session deleted")}
/>