- Replace mobile placeholder with Expo Router app (tabs, playback, auth, library) - Move Convex backend to @otunes/convex for web and mobile reuse - Update web app imports and API routes to use shared package
35 lines
796 B
TypeScript
35 lines
796 B
TypeScript
import { StyleSheet, Text, View } from "react-native"
|
|
|
|
import { spacing, useThemeColors } from "@/lib/theme"
|
|
|
|
export function ScreenHeader({
|
|
title,
|
|
right,
|
|
}: {
|
|
title: string
|
|
right?: React.ReactNode
|
|
}) {
|
|
const colors = useThemeColors()
|
|
return (
|
|
<View style={[styles.header, { borderBottomColor: colors.border, backgroundColor: colors.background }]}>
|
|
<Text style={[styles.title, { color: colors.foreground }]}>{title}</Text>
|
|
{right}
|
|
</View>
|
|
)
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
header: {
|
|
flexDirection: "row",
|
|
alignItems: "center",
|
|
justifyContent: "space-between",
|
|
paddingHorizontal: spacing.lg,
|
|
paddingVertical: spacing.md,
|
|
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
},
|
|
title: {
|
|
fontSize: 20,
|
|
fontWeight: "700",
|
|
},
|
|
})
|