import * as React from "react" import { Button, Embed, EmbedField, EmbedTitle } from "../src.new/main" export function Counter(props: { onDeactivate: () => void }) { const [count, setCount] = React.useState(0) const [embedVisible, setEmbedVisible] = React.useState(false) return ( <> this button was clicked {count} times {embedVisible && ( the counter {count > 0 && ( {count % 2 === 0 ? "yes" : "no"} )} )} {embedVisible && (