import React from 'react'; import AceEditor from 'react-ace'; export interface IYamlViewerProps { content: string; } export const YamlViewer: React.FC = ({ content }: IYamlViewerProps) => { return (
{ // This removes the built-in search box (as it doesn't scroll properly to matches) // commands is missing in the type def and therefore we have to cast as any (editor as any).commands?.removeCommand('find'); }} />
); };