mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 17:33:55 +00:00
24 lines
577 B
TypeScript
24 lines
577 B
TypeScript
import { IoLocate } from '@react-icons/all-files/io5/IoLocate';
|
|
|
|
import { cx } from '../../../common/utils/styleUtils';
|
|
|
|
import style from './FollowButton.module.scss';
|
|
|
|
interface FollowButtonProps {
|
|
isVisible: boolean;
|
|
onClickHandler: () => void;
|
|
}
|
|
|
|
export default function FollowButton(props: FollowButtonProps) {
|
|
const { isVisible, onClickHandler } = props;
|
|
|
|
const classes = cx([style.followButton, !isVisible && style.hidden]);
|
|
|
|
return (
|
|
<button className={classes} onClick={onClickHandler} type='button'>
|
|
<IoLocate />
|
|
Follow
|
|
</button>
|
|
);
|
|
}
|