import { Button, ButtonProps } from 'antd'; import { HeartFilled } from '@ant-design/icons'; import { FC, useState } from 'react'; import { useRecoilValue } from 'recoil'; import { Modal } from '../ui/Modal/Modal'; import { FollowModal } from '../modals/FollowModal/FollowModal'; import styles from './ActionButton/ActionButton.module.scss'; import { clientConfigStateAtom } from '../stores/ClientConfigStore'; import { ClientConfig } from '../../interfaces/client-config.model'; export type FollowButtonProps = ButtonProps; export const FollowButton: FC = props => { const [showModal, setShowModal] = useState(false); const clientConfig = useRecoilValue(clientConfigStateAtom); const { name, federation } = clientConfig; const { account } = federation; return ( <> setShowModal(false)} width="550px" height="200px" > setShowModal(false)} /> ); };