useCopyClick.d.ts 353 B

1234567891011
  1. import * as React from 'react';
  2. import type { CopyConfig } from '../Base';
  3. declare const useCopyClick: ({ copyConfig, children, }: {
  4. copyConfig: CopyConfig;
  5. children?: React.ReactNode;
  6. }) => {
  7. copied: boolean;
  8. copyLoading: boolean;
  9. onClick: (e?: React.MouseEvent<HTMLButtonElement>) => Promise<void>;
  10. };
  11. export default useCopyClick;