mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-15 21:22:18 +01:00
11 lines
351 B
TypeScript
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 });
|
|
}
|