(params: ReportPostProps)
| 51 | }); |
| 52 | |
| 53 | const reportPost = async (params: ReportPostProps) => { |
| 54 | if (!user) { |
| 55 | showLogin({ trigger: AuthTriggers.ReportPost }); |
| 56 | return { successful: false }; |
| 57 | } |
| 58 | |
| 59 | await reportPostAsync(params); |
| 60 | |
| 61 | return { successful: true }; |
| 62 | }; |
| 63 | |
| 64 | const hidePost = async (id: string) => { |
| 65 | if (!user) { |