/**
 * Builds a string of attribute="value" from
 * any props provided. Props must be kebab-case
 */
export function stringifyProps(props) {
  let expandedProps = '';
  expandedProps = Object.entries(props).reduce((acc, [key, value]) => {
    const asAttribute = `${key}="${value}" `;
    return acc.concat(asAttribute);
  }, '');
  return expandedProps;
}
