fleet/frontend/components/side_panels/QuerySidePanel/QueryTableNotes/QueryTableNotes.tsx
Gabriel Hernandez a950e9d095
Feat/update query doc sidepanel (#8214)
* create new components for query side panel

* add reusable icon component that uses svg for icons

* integrate with new osquery_fleet_schema.json data

* update UI to work with osquery_fleet_schema.json

* add remark-gfm to safely support direct urls in markdown

* move fleet ace into markdown component so we can render code with ace editor

* add testing for new query sidebar

* remove incomplete tests for query sidepanel
2022-10-14 17:45:57 +01:00

23 lines
463 B
TypeScript

import React from "react";
import FleetMarkdown from "components/FleetMarkdown";
interface IQueryTableNotesProps {
notes: string;
}
const baseClass = "query-table-notes";
const QueryTableNotes = ({ notes }: IQueryTableNotesProps) => {
return (
<div className={baseClass}>
<h3>Notes</h3>
<FleetMarkdown
markdown={notes}
className={`${baseClass}__notes-markdown`}
/>
</div>
);
};
export default QueryTableNotes;