UNPKG

translation-audio-player

Version:

A personal audio player for React.js with a few modifications from original

17 lines (14 loc) 348 B
import React from 'react'; import style from '../styles/audioComponents.css'; const ButtonGroup = ({ children }) => { const newStyle = { width: `${React.Children.count(children) * 100}px` }; return ( <div className={style.flexButtonBox} style={newStyle} > { children } </div> ); }; export default ButtonGroup;