import { RcIconButton, spacing, styled } from '@ringcentral/juno'; import { Copy as CopyIcon } from '@ringcentral/juno-icon'; import type { FunctionComponent } from 'react'; import React, { useCallback } from 'react'; import CopyToClipboard from '../CopyToClipboard'; import i18n from './i18n'; import type { ICopyBtnProps, InnerBtnProps } from './interface'; const BtnContainer = styled('div')` & { width: ${spacing(8)}; } `; const InnerBtn: FunctionComponent = ({ size, currentLocale, executeCopy, }) => ( ); export const CopyBtn: FunctionComponent = ({ value, size, currentLocale, handleSuccess, handleFailure, }) => { const memoizedBtn = useCallback( ({ executeCopy }: Pick) => ( ), [size, currentLocale], ); return ( ); }; CopyBtn.defaultProps = { handleSuccess: () => {}, handleFailure: () => {}, currentLocale: 'en-US', value: '', size: 'small', };