Initial support for song browsing from UI
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user