UNPKG

material-ui-arabic-datepicker

Version:

React components, that implements material design date and time pickers for material-ui v1 including a customized Datepicker with arabic header, months and weekdays and English numbers, modfied implementation from materail-ui-pickers

18 lines (12 loc) 440 B
import React from 'react'; import { MuiPickersContextConsumer } from '../utils/MuiPickersUtilsProvider'; const WithUtils = () => (Component) => { const withUtils = props => ( <MuiPickersContextConsumer> {utils => <Component utils={utils} {...props} />} </MuiPickersContextConsumer> ); withUtils.displayName = `WithUtils(${Component.displayName || Component.name})`; return withUtils; }; export default WithUtils;