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