mirror of
https://github.com/remvze/moodist.git
synced 2025-12-18 01:14:17 +00:00
22 lines
514 B
TypeScript
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>
|
|
);
|
|
}
|