(ids: string[])
| 25 | const ownerOrder = ['edit', 'delete', 'analytics', 'boost', 'pin']; |
| 26 | |
| 27 | const sortBy = (ids: string[]) => (a: MenuItemProps, b: MenuItemProps) => |
| 28 | ids.indexOf(a.id ?? '') - ids.indexOf(b.id ?? ''); |
| 29 | |
| 30 | // The phone's post menu: the first level is Share, Why am I seeing this? (on |
| 31 | // For You only), the follows (source and author, so following is never |