Files
yaak-mountain-loop/apps/yaak-client/components/core/KeyValueRow.tsx
T

11 lines
351 B
TypeScript

import { KeyValueRow as BaseKeyValueRow, type KeyValueRowProps } from "@yaakapp-internal/ui";
import { copyToClipboard } from "../../lib/copy";
export function KeyValueRow(props: Omit<KeyValueRowProps, "copy">) {
return <BaseKeyValueRow {...props} copy={copy} />;
}
function copy(text: string) {
copyToClipboard(text, { disableToast: true });
}