diff options
author | Justice Almanzar <superdash993@gmail.com> | 2022-12-07 09:33:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 15:33:40 +0100 |
commit | 2d08dd8a9c289bcdb6395e8bdf28b6b729946ab1 (patch) | |
tree | b15d5c06c3dd881bca64d7eee72a9da0c83e503f /src/plugins/shikiCodeblocks/previewExample.tsx | |
parent | 49b45d82624c3c53aa2a0a4f8bd9957fed75abdd (diff) | |
download | Vencord-2d08dd8a9c289bcdb6395e8bdf28b6b729946ab1.tar.gz Vencord-2d08dd8a9c289bcdb6395e8bdf28b6b729946ab1.tar.bz2 Vencord-2d08dd8a9c289bcdb6395e8bdf28b6b729946ab1.zip |
Shiki settings preview (#297)
Diffstat (limited to 'src/plugins/shikiCodeblocks/previewExample.tsx')
-rw-r--r-- | src/plugins/shikiCodeblocks/previewExample.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/shikiCodeblocks/previewExample.tsx b/src/plugins/shikiCodeblocks/previewExample.tsx new file mode 100644 index 0000000..971d016 --- /dev/null +++ b/src/plugins/shikiCodeblocks/previewExample.tsx @@ -0,0 +1,13 @@ +/* eslint-disable header/header */ +import React from "react"; + +const handleClick = async () => + console.log((await import("@webpack/common")).Clipboard.copy("\u200b")); + +export const Example: React.FC<{ + real: boolean, + shigged?: number, +}> = ({ real, shigged }) => <> + <p>{`Shigg${real ? `ies${shigged === 0x1B ? "t" : ""}` : "y"}`}</p> + <button onClick={handleClick}>Click Me</button> +</>; |