import * as React from 'react';
import { ModelType, Muscle, IModelProps, IMuscleStats } from './metadata';
import { anteriorData, posteriorData } from '../assets';
import { ensure, fillIntensityColor, fillMuscleData } from '../utils';
import { DEFAULT_BODY_COLOR, DEFAULT_HIGHLIGHTED_COLORS, DEFAULT_MODEL_TYPE } from '../constants';
/**
* Component which displays a model of a body. Accepts many optional props for manipulating functionality or visuals of the component.
*
* @param data Array containing exercise objects
* @param bodyColor Default color of body model (with no muscles worked)
* @param highlightedColors Array containing colors to display depending on frequency muscle is worked (where array index = frequency - 1)
* @param onClick Callback function when a muscle is clicked (returns back object with muscle-related data)
* @param svgStyle Style object that gets passed to SVG element
* @param style Style object that gets passed to SVG parent wrapper (div)
* @param type Denotes type of model (default `anterior` view vs `posterior` view)
*
* @component
* @example
* const data = [{ name: 'Bench Press', muscles: ['chest', 'triceps', 'front-deltoids'] }]
* return (
*