Equicord/src/plugins/shikiCodeblocks.desktop/previewExample.tsx
sadan4 524202e49d
Fix clipboard api, IrcColors, and Memberlist Decorators (#3383)
Co-authored-by: Vending Machine <vendicated@riseup.net>
2025-04-16 20:34:16 +02:00

13 lines
416 B
TypeScript

/* eslint-disable simple-header/header */
import React from "react";
const handleClick = async () =>
console.log((await import("@utils/clipboard")).copyToClipboard("\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>
</>;