mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-07 08:23:55 +00:00
d81f5fcfe1
* chore: add new icons package and remove the old one * chore: update and consolidate imports * chore: missed import
24 lines
557 B
TypeScript
24 lines
557 B
TypeScript
import { IoLocate } from 'react-icons/io5';
|
|
|
|
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>
|
|
);
|
|
}
|