import {StackScreenProps} from '@react-navigation/stack';
import React from 'react';
import {useAppResourceContext} from '../contexts';
import {PiScaleNavStackParamList} from 'src/navigation';
import {PSSafeAreaView} from './PSSafeAreaView';
import {PSSettingPermissionInThreadScreen} from '@communi/chat-react-native';
type PSSettingPermissionScreenProps = StackScreenProps<
PiScaleNavStackParamList,
'PSSettingPermissionScreen'
>;
export const PSSettingPermissionScreen = ({
route,
navigation,
}: PSSettingPermissionScreenProps) => {
const {colors} = useAppResourceContext();
const onBackPress = () => {
navigation.goBack();
};
return (
<PSSafeAreaView
topBackgroundColor={colors.Base.b0}
containerBackgroundColor={colors.Base.b0}>
<PSSettingPermissionInThreadScreen
userRole={userRole}
threadId={threadId}
onBackPress={onBackPress}
/>
</PSSafeAreaView>
);
};