mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 12:30:12 +02:00
c9dbf9b5be
* draft add remotes * add favorite, rating * add basic auth
21 lines
651 B
TypeScript
21 lines
651 B
TypeScript
import { CiImageOff, CiImageOn } from 'react-icons/ci';
|
|
import { RemoteButton } from '/@/remote/components/buttons/remote-button';
|
|
import { useShowImage, useToggleShowImage } from '/@/remote/store';
|
|
|
|
export const ImageButton = () => {
|
|
const showImage = useShowImage();
|
|
const toggleImage = useToggleShowImage();
|
|
|
|
return (
|
|
<RemoteButton
|
|
mr={5}
|
|
size="xl"
|
|
tooltip={showImage ? 'Hide Image' : 'Show Image'}
|
|
variant="default"
|
|
onClick={() => toggleImage()}
|
|
>
|
|
{showImage ? <CiImageOff size={30} /> : <CiImageOn size={30} />}
|
|
</RemoteButton>
|
|
);
|
|
};
|