Files
standardnotes-app-web/app/assets/javascripts/Components/PurchaseFlow/PurchaseFlowWrapper.tsx
2022-05-30 12:42:52 +05:30

15 lines
496 B
TypeScript

import { observer } from 'mobx-react-lite'
import { FunctionComponent } from 'react'
import PurchaseFlowView from './PurchaseFlowView'
import { PurchaseFlowWrapperProps } from './PurchaseFlowWrapperProps'
const PurchaseFlowWrapper: FunctionComponent<PurchaseFlowWrapperProps> = ({ appState, application }) => {
if (!appState.purchaseFlow.isOpen) {
return null
}
return <PurchaseFlowView appState={appState} application={application} />
}
export default observer(PurchaseFlowWrapper)