Initial support for song browsing from UI

This commit is contained in:
Deluan
2020-01-22 10:19:13 -05:00
parent fdf1ceeade
commit 9557f7ceed
17 changed files with 158 additions and 28 deletions
+18
View File
@@ -0,0 +1,18 @@
import React from 'react'
import PropTypes from 'prop-types'
const BitrateField = ({ record = {}, source }) => {
return <span>{`${record[source]} kbps`}</span>
}
BitrateField.propTypes = {
label: PropTypes.string,
record: PropTypes.object,
source: PropTypes.string.isRequired
}
BitrateField.defaultProps = {
addLabel: true
}
export default BitrateField