Files
moodist/src/components/menu/items/shuffle.tsx
2024-01-03 20:01:58 +03:30

12 lines
295 B
TypeScript

import { BiShuffle } from 'react-icons/bi/index';
import { useSoundStore } from '@/store';
import { Item } from '../item';
export function Shuffle() {
const shuffle = useSoundStore(state => state.shuffle);
return <Item icon={<BiShuffle />} label="Shuffle Sounds" onClick={shuffle} />;
}