digitalfabrik/integreat-app

View on GitHub
native/src/routes/FeedbackModalContainer.tsx

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
import React, { ReactElement } from 'react'

import { FeedbackModalRouteType } from 'shared'

import FeedbackContainer from '../components/FeedbackContainer'
import { NavigationProps, RouteProps } from '../constants/NavigationTypes'

type FeedbackModalContainerProps = {
  route: RouteProps<FeedbackModalRouteType>
  navigation: NavigationProps<FeedbackModalRouteType>
}

const FeedbackModalContainer = ({ route }: FeedbackModalContainerProps): ReactElement => (
  <FeedbackContainer {...route.params} />
)

export default FeedbackModalContainer