// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import type { JSXElement } from "@coreai-ds/react-components";
import { Markdown } from "@coreai-ds/react-components";
import * as React from 'react';

const codeBlock = `
Inline code: \`console.log('Hello, world!');\` example.

\`\`\`typescript
function greet(name: string): string {
  return 'Hello, ' + name;
}
\`\`\`

\`\`\`
Code without language
or syntax highlighting.
\`\`\`
`;

export const CodeBlock = (): JSXElement => <Markdown content={codeBlock}/>;

export default CodeBlock;
