Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/.cache/admin/src/components/Users/LinkNotification/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // 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 (
<Wrapper>
<IconWrapper>
<Envelope />
</IconWrapper>
<Flex flexDirection="column" justifyContent="center">
<Text fontWeight="semiBold" color="black" fontSize="md" lineHeight="18px">
{target}
<CopyToClipboard onCopy={handleCopy} text={target}>
<Duplicate fill="#8B91A0" className="icon-duplicate" />
</CopyToClipboard>
</Text>
<Text fontWeight="regular" color="grey" fontSize="sm" lineHeight="18px">
{children}
</Text>
</Flex>
</Wrapper>
);
};
LinkNotification.defaultProps = {
target: '',
children: '',
};
LinkNotification.propTypes = {
target: PropTypes.string,
children: PropTypes.string,
};
export default LinkNotification;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0053 ]-- |