moodist/src/components/shuffle/shuffle.tsx
2024-06-15 12:36:47 +04:30

22 lines
514 B
TypeScript

import { BiShuffle } from 'react-icons/bi/index';
import { Tooltip } from '@/components/tooltip';
import { useSoundStore } from '@/stores';
import styles from './shuffle.module.css';
export function Shuffle() {
const shuffle = useSoundStore(state => state.shuffle);
return (
<Tooltip content="Shuffle sounds" showDelay={0}>
<button
aria-label="Shuffle sounds"
className={styles.button}
onClick={shuffle}
>
<BiShuffle />
</button>
</Tooltip>
);
}