import * as React from 'react' ; import { Record , useTranslate } from 'react-admin' ; const UserTitle = ( { record } ) => { const translate = useTranslate ( ) ; return ( < span > { record ? translate ( 'user.edit.title' , { title : record . name } ) : '' } < /span>); } ; export default UserTitle ;