mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-23 20:34:25 +08:00

* feat: enable copy-to-clipboard to onboarding docs snippets * feat: remove commented code & <br></br> from md docs * feat: remove react-copy-to-clipboard lib and fix type issues * feat: markdown renderer - pre - remove any with reactnode
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
import { Code, Pre } from 'components/MarkdownRenderer/MarkdownRenderer';
|
|
import Header from 'container/OnboardingContainer/common/Header/Header';
|
|
import ReactMarkdown from 'react-markdown';
|
|
|
|
import ConnectionStatus from '../common/LogsConnectionStatus/LogsConnectionStatus';
|
|
import SysLogsDocs from './syslogs.md';
|
|
|
|
export default function SysLogs({
|
|
activeStep,
|
|
}: {
|
|
activeStep: number;
|
|
}): JSX.Element {
|
|
return (
|
|
<>
|
|
{activeStep === 2 && (
|
|
<div className="golang-setup-instructions-container">
|
|
<Header
|
|
entity="syslogs"
|
|
heading="Collecting Syslogs"
|
|
imgURL="/Logos/syslogs.svg"
|
|
docsURL="https://signoz.io/docs/userguide/collecting_syslogs/"
|
|
imgClassName="supported-logs-type-img"
|
|
/>
|
|
|
|
<div className="content-container">
|
|
<ReactMarkdown
|
|
components={{
|
|
pre: Pre,
|
|
code: Code,
|
|
}}
|
|
>
|
|
{SysLogsDocs}
|
|
</ReactMarkdown>
|
|
</div>
|
|
</div>
|
|
)}
|
|
{activeStep === 3 && (
|
|
<div className="connection-status-container">
|
|
<ConnectionStatus logType="syslogs" />
|
|
</div>
|
|
)}
|
|
</>
|
|
);
|
|
}
|