import React from 'react' const Header = ({course}) =>

{course.name}

const Part = ({part}) =>

{part.name} {part.exercises}

const Content = ({parts}) => (
{parts.map(part => )}
) const Total = ({parts}) =>

total of {parts.reduce((p, c) => p + c.exercises, 0)} exercises

const Course = ({course}) => (
) export default Course