"use client"; import { EditorCommand, EditorCommandEmpty, EditorCommandItem, EditorCommandList, } from "novel"; import { suggestionItems } from "."; export function SlashCommandComponent() { return ( No results {suggestionItems.map((item) => ( item?.command?.(val)} className={`flex w-full items-center space-x-2 rounded-md px-2 py-1 text-left text-sm hover:bg-accent aria-selected:bg-accent `} key={item.title} >
{item.icon}

{item.title}

{item.description}

))}
); }