mirror of
https://github.com/remvze/moodist.git
synced 2026-02-28 00:53:13 +08:00
20 lines
407 B
TypeScript
20 lines
407 B
TypeScript
import { BiShuffle } from 'react-icons/bi/index';
|
|
|
|
import { useSoundStore } from '@/stores';
|
|
|
|
import { Item } from '../item';
|
|
|
|
export function Shuffle() {
|
|
const shuffle = useSoundStore(state => state.shuffle);
|
|
const locked = useSoundStore(state => state.locked);
|
|
|
|
return (
|
|
<Item
|
|
disabled={locked}
|
|
icon={<BiShuffle />}
|
|
label="Shuffle Sounds"
|
|
onClick={shuffle}
|
|
/>
|
|
);
|
|
}
|