( ad: Ad, )
| 158 | |
| 159 | // Skadi marks a boost by what it carries: the post or the squad, no creative. |
| 160 | export const isBoostedPostCreative = ( |
| 161 | ad: Ad, |
| 162 | ): ad is Ad & { data: { post: Post } } => !!ad.data?.post; |
| 163 | |
| 164 | export const isBoostedSquadCreative = (ad: Ad): ad is AdSquadItem['ad'] => |
| 165 | !!ad.data?.source; |