import React, { useState } from 'react'; import { Icon } from '@teambit/evangelist.elements.icon'; import { H5 } from '@teambit/documenter.ui.heading'; import { CopiedMessage } from './copied-message'; export const CopiedMessageExample = () => { return (
); }; export const HiddenCopiedMessageExample = () => { const [isCopied, setIsCopied] = useState(false); const handleClick = () => { setIsCopied(true); setTimeout(() => setIsCopied(false), 2000); }; return (
Click icon to copy
); };