({
origin,
opts,
}: ToggleVoteProps)
| 26 | import { emitPatchyEvent } from '../../features/patchy/patchyEvents'; |
| 27 | |
| 28 | const prepareVotePostLogOptions = ({ |
| 29 | origin, |
| 30 | opts, |
| 31 | }: ToggleVoteProps): PostLogEventFnOptions => { |
| 32 | const { extra, ...restOpts } = opts || {}; |
| 33 | |
| 34 | return { |
| 35 | ...restOpts, |
| 36 | extra: { ...extra, origin }, |
| 37 | }; |
| 38 | }; |
| 39 | |
| 40 | const useVotePost = ({ |
| 41 | onMutate, |