12 lines
353 B
TypeScript
12 lines
353 B
TypeScript
|
|
import * as React from 'react';
|
||
|
|
import type { CopyConfig } from '../Base';
|
||
|
|
declare const useCopyClick: ({ copyConfig, children, }: {
|
||
|
|
copyConfig: CopyConfig;
|
||
|
|
children?: React.ReactNode;
|
||
|
|
}) => {
|
||
|
|
copied: boolean;
|
||
|
|
copyLoading: boolean;
|
||
|
|
onClick: (e?: React.MouseEvent<HTMLButtonElement>) => Promise<void>;
|
||
|
|
};
|
||
|
|
export default useCopyClick;
|