Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nomnoml Renderer #526

Merged
merged 18 commits into from
Mar 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mirrored imports based on MermaidPreview component
rjwignar committed Mar 21, 2024
commit 7abeee8da1f7fabe01262e48e01189a8005dd3fe
7 changes: 4 additions & 3 deletions src/components/NomnomlPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { useRef, type ReactNode, useCallback, useEffect } from "react";
import { memo, useCallback, useEffect, useRef, type ReactNode } from "react";
import { Card, CardBody, IconButton, useClipboard } from "@chakra-ui/react";
import nomnoml from "nomnoml";
import { useClipboard } from "@chakra-ui/react";
import { useAlert } from "../hooks/use-alert";
import { TbCopy } from "react-icons/tb";
import { nanoid } from "nanoid";
import { useAlert } from "../hooks/use-alert";

type NomnomlPreviewProps = {
children: ReactNode & ReactNode[];