/** * Syntax Helper — shows command signature below the input * Ball Studios */ import React from 'react'; interface Suggestion { syntax: string; examples: string[]; plugin: string; } interface Props { suggestion: Suggestion; } export default function SyntaxHelper({ suggestion }: Props) { return (
{suggestion.syntax} {suggestion.examples.length > 0 && ( e.g. {suggestion.examples[0]} )} {suggestion.plugin && ( [{suggestion.plugin}] )}
); }