import { clsx } from 'clsx' import { Show, createMemo } from 'solid-js' import { useLocalize } from '../../../context/localize' import { Button } from '../Button' import { CheckButton } from '../CheckButton' import { Icon } from '../Icon' import stylesButton from '../Button/Button.module.scss' import styles from './FollowingButton.module.scss' type Props = { class?: string isFollowed: boolean minimize?: boolean action: () => void iconButtons?: boolean actionMessageType?: 'follow' | 'unfollow' } export const FollowingButton = (props: Props) => { const { t } = useLocalize() const inActionText = createMemo(() => { return props.actionMessageType === 'follow' ? t('Following...') : t('Unfollowing...') }) return (