import React from 'react';
import { StyleSheet } from 'react-native';
import { Divider, Layout, LayoutProps, Text } from '@ui-kitten/components';
export interface ProfileSettingProps extends LayoutProps {
hint?: string;
value: string;
}
export const ProfileSetting = (props: ProfileSettingProps): React.ReactElement => {
const { style, hint, value, ...layoutProps } = props;
const renderHintElement = (): React.ReactElement => (
{hint}
);
return (
{hint && renderHintElement()}
{value}
);
};
const styles = StyleSheet.create({
container: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
},
});