mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
[WEB] Add AI generator items to the Insert menu (#33967)
* adding abstract generator in the dropdown * add abstract generator to Insert menu dropdown * add Keywords generator to Insert menu * adding title generator and removing some unused code * adding spanish translations * adding buildOpenGeneratorHandler * changing the approach to slots approach * removing the feature flag * niptick * rename the file * adding tests * [WEB] Style changes for Writefull pop-up component (#34067) GitOrigin-RevId: 0bc97c2c1f3dc458a2ca30e8cc54dddfd5bc9b3b
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
useContext,
|
||||
useMemo,
|
||||
useState,
|
||||
ReactNode,
|
||||
} from 'react'
|
||||
|
||||
type CommandInvocationContext = {
|
||||
@@ -19,6 +20,7 @@ export type Command = {
|
||||
handler?: (context: CommandInvocationContext) => void
|
||||
href?: string
|
||||
disabled?: boolean
|
||||
leadingIcon?: ReactNode
|
||||
}
|
||||
|
||||
const CommandRegistryContext = createContext<CommandRegistry | undefined>(
|
||||
|
||||
Reference in New Issue
Block a user