28 lines
645 B
Dart
28 lines
645 B
Dart
import "package:shadcn_flutter/shadcn_flutter.dart";
|
|
import "tool_bubble_base.dart";
|
|
|
|
class BashBubble extends StatelessWidget {
|
|
const BashBubble({
|
|
super.key,
|
|
required this.input,
|
|
this.result,
|
|
this.isPendingPermission = false,
|
|
});
|
|
|
|
final Map<String, dynamic> input;
|
|
final String? result;
|
|
final bool isPendingPermission;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final command = input["command"] as String? ?? "";
|
|
|
|
return ToolBubbleBase(
|
|
toolName: "Bash",
|
|
icon: LucideIcons.terminal,
|
|
result: result,
|
|
isPendingPermission: isPendingPermission,
|
|
detail: command,
|
|
);
|
|
}
|
|
}
|