import React from "react"; import "./sampleChromeCommand.css"; export default function sampleChromeCommand(suggestion) { const { name, highlight = [], category, shortcut } = suggestion; // handle simple highlight when searching a single key if (!Array.isArray(highlight)) { return (
{category} {shortcut}
); } // handle multiple highlights when searching multiple keys, see: // https://github.com/farzher/fuzzysort#advanced-usage // Note that we are passing "keys" to the fuzzysort options, ex: // return (
{shortcut}
); }