refactor command palette component to comand feature instead of menu feature

This commit is contained in:
Chris Kruining 2025-01-07 10:07:05 +01:00
parent 34b30b2bc2
commit ddbcabcecf
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
6 changed files with 252 additions and 65 deletions

View file

@ -11,7 +11,7 @@ interface ContextMenuType {
const ContextMenu = createContext<ContextMenuType>()
const Root: ParentComponent<{ commands: CommandType<any[]>[] }> = (props) => {
const Root: ParentComponent<{ commands: CommandType[] }> = (props) => {
const [target, setTarget] = createSignal<HTMLElement>();
const context = {