mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 02:13:48 +00:00
93fb48ea1c
* feat: operator view * chore: smoke test operator * refactor: small improvements from deepsource --------- Co-authored-by: arihanv <arihanvaranasi@gmail.com> Co-authored-by: arihanv <63890951+arihanv@users.noreply.github.com>
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>
|
|
);
|
|
}
|