import React, { forwardRef, ElementRef } from 'react' import { IconCheck, IconCopy } from '~/components/Icons' import { styled } from '~/theme' import { Conditional } from '../..' const StyledCopyButton = styled('div', { position: 'relative', cursor: 'pointer', }) const StyledCheck = styled(IconCheck, { color: '$TextPrimary', }) const StyledCopy = styled(IconCopy, { color: '$TextPrimary', }) export interface CopyButtonProps { wasCopied: boolean onClick: () => void } export const CopyButton = forwardRef< ElementRef, CopyButtonProps >((properties, forwardedRef) => { const { wasCopied, ...remainingProps } = properties return ( ) }) CopyButton.displayName = 'CopyButton'