| 1 | import type { NativeHeaderToolbar as IosNativeHeaderToolbar } from "./NativeHeaderToolbar"; |
| 2 | |
| 3 | function NativeHeaderToolbarRoot(_props: Parameters<typeof IosNativeHeaderToolbar>[0]) { |
| 4 | return null; |
| 5 | } |
| 6 | |
| 7 | function NativeHeaderToolbarButton(_props: Parameters<typeof IosNativeHeaderToolbar.Button>[0]) { |
| 8 | return null; |
| 9 | } |
| 10 | |
| 11 | function NativeHeaderToolbarMenu(_props: Parameters<typeof IosNativeHeaderToolbar.Menu>[0]) { |
| 12 | return null; |
| 13 | } |
| 14 | |
| 15 | function NativeHeaderToolbarMenuAction( |
| 16 | _props: Parameters<typeof IosNativeHeaderToolbar.MenuAction>[0], |
| 17 | ) { |
| 18 | return null; |
| 19 | } |
| 20 | |
| 21 | function NativeHeaderToolbarLabel(_props: Parameters<typeof IosNativeHeaderToolbar.Label>[0]) { |
| 22 | return null; |
| 23 | } |
| 24 | |
| 25 | function NativeHeaderToolbarSpacer(_props: Parameters<typeof IosNativeHeaderToolbar.Spacer>[0]) { |
| 26 | return null; |
| 27 | } |
| 28 | |
| 29 | function NativeHeaderToolbarSearchBarSlot() { |
| 30 | return null; |
| 31 | } |
| 32 | |
| 33 | // Native header item factories are iOS-only; Android owns its in-flow header. |
| 34 | export const NativeHeaderToolbar = Object.assign(NativeHeaderToolbarRoot, { |
| 35 | Button: NativeHeaderToolbarButton, |
| 36 | Label: NativeHeaderToolbarLabel, |
| 37 | Menu: Object.assign(NativeHeaderToolbarMenu, { |
| 38 | Action: NativeHeaderToolbarMenuAction, |
| 39 | }), |
| 40 | MenuAction: NativeHeaderToolbarMenuAction, |
| 41 | SearchBarSlot: NativeHeaderToolbarSearchBarSlot, |
| 42 | Spacer: NativeHeaderToolbarSpacer, |
| 43 | }); |