import React from 'react'; import { FormattedMessage } from 'react-intl'; import { Avatar, Divider, HStack, Stack, Text, Button } from 'soapbox/components/ui'; interface IConfirmationStep { group: any } const ConfirmationStep: React.FC = ({ group }) => { const handleCopyLink = () => { if (navigator.clipboard) { navigator.clipboard.writeText(group.uri); } }; const handleShare = () => { navigator.share({ text: group.display_name, url: group.uri, }).catch((e) => { if (e.name !== 'AbortError') console.error(e); }); }; return ( {group.display_name} {group.note} {('share' in navigator) && ( )} ); }; interface IInfoListNumber { number: number } const InfoListNumber: React.FC = ({ number }) => { return (
{number}
); }; interface IInfoListItem { number: number children: React.ReactNode } const InfoListItem: React.FC = ({ number, children }) => { return (
{children}
); }; export default ConfirmationStep;