(id: string)
| 62 | }; |
| 63 | |
| 64 | const hidePost = async (id: string) => { |
| 65 | if (!user) { |
| 66 | showLogin({ trigger: AuthTriggers.HidePost }); |
| 67 | return { successful: false }; |
| 68 | } |
| 69 | |
| 70 | await hidePostAsync(id); |
| 71 | |
| 72 | return { successful: true }; |
| 73 | }; |
| 74 | |
| 75 | const unhidePost = async (id: string) => { |
| 76 | if (!user) { |