Drawio.tsx 315 B

12345678910111213
  1. import React, { ReactNode } from 'react';
  2. type Props = {
  3. drawioEmbedUri?: string,
  4. children?: ReactNode,
  5. }
  6. export const Drawio = (props: Props): JSX.Element => {
  7. const { children } = props;
  8. const drawioEmbedUri = props.drawioEmbedUri ?? 'https://embed.diagrams.net/';
  9. return <span>{children}</span>;
  10. };