Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

useThreadHeaderOptions.android.ts

14 lines593 Bytes

1import type { useThreadHeaderOptions as useIosThreadHeaderOptions } from "./useThreadHeaderOptions";
2​
3// oxlint-disable-next-line t3code/no-hookless-use-function -- Android stub of a hook; the iOS file calls hooks.
4export function useThreadHeaderOptions(
5 props: Parameters<typeof useIosThreadHeaderOptions>[0],
6): ReturnType<typeof useIosThreadHeaderOptions> {
7 return {
8 options: { contentStyle: { backgroundColor: props.headerColor } },
9 // Android renders header actions as children, not native item factories.
10 optionsVersion: [],
11 sidebar: true,
12 fallback: null,
13 };