import { Box, Typography } from "@mui/material"; import React from "react"; import { EducationType } from "../../types"; import formatDate from "../../utils/formatDate"; const ProfileEducation = ({ education: { school, degree, fieldofstudy, current, to, from, description }, }: { education: EducationType; }) => ( {school} {formatDate(from)} - {to ? formatDate(to) : "Now"} Degree: {degree} Field Of Study: {fieldofstudy} Description: {description} ); export default ProfileEducation;