mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
* 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
20 lines
416 B
TypeScript
20 lines
416 B
TypeScript
import React from "react";
|
|
|
|
import FleetMarkdown from "components/FleetMarkdown";
|
|
|
|
interface IQueryTableExampleProps {
|
|
example: string;
|
|
}
|
|
|
|
const baseClass = "query-table-example";
|
|
|
|
const QueryTableExample = ({ example }: IQueryTableExampleProps) => {
|
|
return (
|
|
<div className={baseClass}>
|
|
<h3>Example</h3>
|
|
<FleetMarkdown markdown={example} />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default QueryTableExample;
|