2022-11-23 15:48:40 -07:00
|
|
|
import { FiPause, FiPlay } from "react-icons/fi";
|
|
|
|
|
2022-11-23 22:46:32 -07:00
|
|
|
interface PauseProps {
|
|
|
|
paused: boolean;
|
|
|
|
setPaused: (value: boolean) => void;
|
|
|
|
}
|
|
|
|
|
|
|
|
const Pause = (props: PauseProps) => {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<button
|
|
|
|
title="Pause"
|
|
|
|
className="fixed z-90 top-28 right-8 bg-slate-100 w-14 h-14 rounded-full drop-shadow-lg
|
2022-11-23 15:48:40 -07:00
|
|
|
flex justify-center items-center text-black text-2xl hover:bg-sky-500 hover:drop-shadow-2xl"
|
2022-11-23 22:46:32 -07:00
|
|
|
onClick={() => props.setPaused(!props.paused)}
|
|
|
|
>
|
|
|
|
{props.paused ? <FiPlay /> : <FiPause />}
|
|
|
|
</button>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Pause;
|