芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/.cache/admin/src/components/Users/LinkNotification/index.js
// This component is a work in progress // It's made to be used when the users API is ready import React from 'react'; import { Flex, Text } from '@buffetjs/core'; import { Duplicate } from '@buffetjs/icons'; import PropTypes from 'prop-types'; import { CopyToClipboard } from 'react-copy-to-clipboard'; import IconWrapper from './IconWrapper'; import Envelope from './Envelope'; import Wrapper from './Wrapper'; const LinkNotification = ({ target, children }) => { const handleCopy = () => { strapi.notification.toggle({ type: 'info', message: { id: 'notification.link-copied' } }); }; return (
{target}
{children}
); }; LinkNotification.defaultProps = { target: '', children: '', }; LinkNotification.propTypes = { target: PropTypes.string, children: PropTypes.string, }; export default LinkNotification;