/** * Copyright (c) 2019 Paul Armstrong */ import * as Theme from '../theme'; import Hoverable from './Hoverable'; import React from 'react'; import { StyleProp, StyleSheet, Text, ViewStyle } from 'react-native'; interface Props { href: string; style?: StyleProp; text: string; } const DrawerLink = (props: Props): React.ReactElement => { const { href, style, text } = props; return ( {(isHovered) => { return ( {text} ); }} ); }; const styles = StyleSheet.create({ root: { borderRadius: Theme.BorderRadius.Normal, color: Theme.Color.Primary40, }, rootHovered: { backgroundColor: Theme.Color.Primary00, }, }); export default DrawerLink;