import React, { MouseEvent } from 'react'; import { PropsWithElementAttributes } from '../utils'; export type FollowButtonProps = PropsWithElementAttributes<{ followed?: boolean; onClick?: (event: MouseEvent) => void; }>; export const FollowButton = ({ followed = false, onClick, className, style }: FollowButtonProps) => (
{followed ? 'Following' : 'Follow'}
);