mirror of
https://github.com/owncast/owncast.git
synced 2024-12-20 00:11:27 +03:00
22 lines
514 B
TypeScript
22 lines
514 B
TypeScript
import { Button, ButtonProps } from 'antd';
|
|
import { HeartFilled } from '@ant-design/icons';
|
|
|
|
import { FC } from 'react';
|
|
import styles from './ActionButton/ActionButton.module.scss';
|
|
|
|
export type FollowButtonProps = ButtonProps & {
|
|
onClick?: () => void;
|
|
props?: ButtonProps;
|
|
};
|
|
|
|
export const FollowButton: FC<FollowButtonProps> = ({ onClick, props }) => (
|
|
<Button
|
|
{...props}
|
|
type="primary"
|
|
className={styles.button}
|
|
icon={<HeartFilled />}
|
|
onClick={onClick}
|
|
>
|
|
Follow
|
|
</Button>
|
|
);
|