mirror of
https://github.com/hanzo-io/team.git
synced 2026-11-02 06:30:16 +00:00
* feat: Camera functionality and UI changes * chore: moved all buttons to Buttons folder * chore: add back comments --------- Co-authored-by: Nikhil Kothari <[email protected]>
26 lines
873 B
TypeScript
26 lines
873 B
TypeScript
import { Stack, useLocalSearchParams } from 'expo-router';
|
|
import { useColorScheme } from '@hooks/useColorScheme';
|
|
import HeaderBackButton from '@components/common/Buttons/HeaderBackButton';
|
|
import ThreadActions from '@components/features/threads/thread-actions/ThreadActions';
|
|
import ChatLayout from '@components/features/chat/ChatLayout';
|
|
|
|
const Thread = () => {
|
|
|
|
const { id } = useLocalSearchParams()
|
|
|
|
const { colors } = useColorScheme()
|
|
|
|
return (
|
|
<>
|
|
<Stack.Screen options={{
|
|
headerStyle: { backgroundColor: colors.background },
|
|
headerLeft: () => <HeaderBackButton />,
|
|
headerTitle: 'Thread',
|
|
headerRight: () => <ThreadActions threadID={id as string} />
|
|
}} />
|
|
<ChatLayout channelID={id as string} isThread />
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default Thread |