(props: InsertMenuItemProps)
| 1152 | * InsertMenuButton renders an ActionButton with a plus icon that opens a menu. |
| 1153 | */ |
| 1154 | export function InsertMenuButton(props: InsertMenuItemProps) { |
| 1155 | let {children, onOpenChange} = props; |
| 1156 | let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/ai'); |
| 1157 | return ( |
| 1158 | <MenuTrigger onOpenChange={onOpenChange}> |
| 1159 | <ActionButton |
| 1160 | isQuiet |
| 1161 | staticColor="auto" |
| 1162 | aria-label={stringFormatter.format('promptfield.insertButton')}> |
| 1163 | <Plus /> |
| 1164 | </ActionButton> |
| 1165 | <Menu>{children}</Menu> |
| 1166 | </MenuTrigger> |
| 1167 | ); |
| 1168 | } |
| 1169 | export interface AttachFileMenuItemProps extends Omit< |
| 1170 | MenuItemProps, |
| 1171 | | 'children' |
nothing calls this directly
no test coverage detected