mirror of
https://github.com/remvze/moodist.git
synced 2026-03-11 22:54:42 +08:00
23 lines
441 B
TypeScript
23 lines
441 B
TypeScript
import { IoShareSocialSharp } from 'react-icons/io5/index';
|
|
|
|
import { Item } from '../item';
|
|
|
|
import { useSoundStore } from '@/store';
|
|
|
|
interface ShareProps {
|
|
open: () => void;
|
|
}
|
|
|
|
export function Share({ open }: ShareProps) {
|
|
const noSelected = useSoundStore(state => state.noSelected());
|
|
|
|
return (
|
|
<Item
|
|
disabled={noSelected}
|
|
icon={<IoShareSocialSharp />}
|
|
label="Share Sounds"
|
|
onClick={open}
|
|
/>
|
|
);
|
|
}
|