(props: CommandMenuItemProps)
| 876 | // since they dont end up inserting a token or text, we need to clear the partial text that the user used |
| 877 | // to filter the menu |
| 878 | export function CommandMenuItem(props: CommandMenuItemProps) { |
| 879 | let insert = useInsertPromptSegment(() => []); |
| 880 | return ( |
| 881 | <MenuItem |
| 882 | {...props} |
| 883 | onAction={() => { |
| 884 | insert(undefined); |
| 885 | props.onAction?.(); |
| 886 | }} |
| 887 | /> |
| 888 | ); |
| 889 | } |
nothing calls this directly
no test coverage detected