32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
// Metro module 8772 (f8773).
|
|
import { View } from "react-native";
|
|
import { Navigator } from "../../../design/components/Navigator/native/Navigator.native";
|
|
import { getHeaderCloseButton } from "../../../design/components/Navigator/native/NavigatorHeader.native";
|
|
import ModalActionCreators from "../../../actions/ModalActionCreators";
|
|
import { Text } from "../../../design/components/Text/native/Text";
|
|
import { intl, t } from "../../../intl/index.native";
|
|
export default function UnsupportedFeatureModal(props) {
|
|
const { title, onDismiss } = props;
|
|
return <Navigator initialRouteName="Unsupported" screens={{
|
|
Unsupported: {
|
|
title,
|
|
headerLeft: getHeaderCloseButton(function() {
|
|
ModalActionCreators.pop();
|
|
if (onDismiss != null) {
|
|
onDismiss();
|
|
}
|
|
}),
|
|
render: () => <View style={{
|
|
flex: 1,
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
padding: 24
|
|
}}>
|
|
<Text variant="text-lg/normal" color="text-default">
|
|
{intl.string(t.I22zuX)}
|
|
</Text>
|
|
</View>
|
|
}
|
|
}} />;
|
|
};
|