(props: CommandMenuItemProps)
| 1362 | * CommandMenuItem performs an immediate action from within an InsertMenuButton. |
| 1363 | */ |
| 1364 | export function CommandMenuItem(props: CommandMenuItemProps) { |
| 1365 | let insert = useInsertPromptSegment([]); |
| 1366 | return ( |
| 1367 | <MenuItem |
| 1368 | {...props} |
| 1369 | onAction={() => { |
| 1370 | insert(); |
| 1371 | props.onAction?.(); |
| 1372 | }} |
| 1373 | /> |
| 1374 | ); |
| 1375 | } |
nothing calls this directly
no test coverage detected