const firstName = 'Jarek',
  lastName = 'Vakhtang',
  species = 'Krondir',
  gender = 'male',
  height = 217,
  weight = 159,
  tailLength = 112,
  colors = {
    primary: '#C5914E',
    hair: '#827427',
    eyes: '#B2B59D',
    horn: '#DABA8F',
    penis: '#B39B38'
  },
  penis = {
    shape: 'canid',
    type: 'grower',
    special: 'knotted, sheath',
    size: 18,
    girth: 4
  },
  description = "Don't encroach on his turf, or you'll be sorry!";

const toImperial = (cm) => {
  const realFeet = (cm * 0.3937) / 12;
  const feet = Math.floor(realFeet);
  const inches = Math.round((realFeet - feet) * 12);

  return `${feet}'${inches}"`;
};

const toLbs = (kg) => {
  const nearExact = kg / 0.45359237;
  const lbs = Math.floor(nearExact);

  return lbs;
};

const getFullName = () => `${firstName} ${lastName}`;
const getHeight = () => `${height} cm (${toImperial(height)})`;
const getWeight = () => `${weight} kg (${toLbs(weight)} lbs)`;
const getTailLength = () => `${tailLength / 100} m (${toImperial(tailLength)})`;

const getTraits = () => [
  // { icon: 'cake-candles', type: 'Date of Birth', text: getDateOfBirth() },
  { icon: 'mars', type: 'Sex/Gender', text: gender },
  { icon: 'ruler', type: 'Height', text: getHeight() },
  { icon: 'weight-hanging', type: 'Weight', text: getWeight() },
  { icon: 'ruler', type: 'Tail Length', text: getTailLength() }
];

const getColors = () => [
  { name: 'Main Fur', value: colors.primary },
  { name: 'Hair', value: colors.hair },
  { name: 'Eyes', value: colors.eyes },
  { name: 'Horn', value: colors.horn }
];

export default {
  firstName,
  species,
  gender,
  description,
  getFullName,
  getTraits,
  getColors
};
