import React from 'react' ; import { Typography } from '@material-ui/core' ; const TextPrimary = ( { children } ) => ( < Typography variant = "body2" color = "textPrimary" > { children } < /Typography>); const TextSecondary = ( { children } ) => ( < Typography variant = "body2" color = "textSecondary" > { children } < /Typography>); export { TextPrimary , TextSecondary } ;