forked from vergnet/application-amicale
29 lines
733 B
JavaScript
29 lines
733 B
JavaScript
import * as React from 'react';
|
|
import {withTheme} from 'react-native-paper';
|
|
import {DrawerItem} from "@react-navigation/drawer";
|
|
|
|
/**
|
|
* Component used to render a drawer menu item divider
|
|
*
|
|
* @param props Props to pass to the component
|
|
* @return {*}
|
|
*/
|
|
function SidebarDivider(props) {
|
|
const {colors} = props.theme;
|
|
return (
|
|
<DrawerItem
|
|
label={props.title}
|
|
focused={false}
|
|
onPress={undefined}
|
|
style={{
|
|
marginLeft: 0,
|
|
marginRight: 0,
|
|
padding: 0,
|
|
borderRadius: 0,
|
|
backgroundColor: colors.dividerBackground
|
|
}}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export default withTheme(SidebarDivider);
|