// This component is a work in progress // It's made to be used when the users API is ready import React from 'react'; import { Text } from '@buffetjs/core'; import PropTypes from 'prop-types'; import { CopyToClipboard } from 'react-copy-to-clipboard'; import Duplicate from '../../../icons/Duplicate'; import Wrapper from './Wrapper'; import Envelope from './Envelope'; const MagicLink = ({ link }) => { const handleCopy = () => { strapi.notification.info('notification.link-copied'); }; return (
{link} Send this link to the user for him to connect.
); }; MagicLink.defaultProps = { link: 'http://my-app.com/admin/registration?code=1234567827654576856789', }; MagicLink.propTypes = { link: PropTypes.string, }; export default MagicLink;