mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
26 lines
711 B
TypeScript
26 lines
711 B
TypeScript
import Text from '@/components/common/Text'
|
|
import { createStyle } from '@/utils/tools'
|
|
import { useTheme } from '@/store/theme/hook'
|
|
import { useI18n } from '@/lang'
|
|
|
|
export default ({ selectedList, isMove }: {
|
|
selectedList: LX.Music.MusicInfo[]
|
|
isMove: boolean
|
|
}) => {
|
|
const theme = useTheme()
|
|
const t = useI18n()
|
|
return (
|
|
<Text style={styles.title} size={16}>
|
|
{t(isMove ? 'list_multi_add_title_first_move' : 'list_multi_add_title_first_add')} <Text color={theme['c-primary-font']} size={16}>{selectedList.length}</Text> {t('list_multi_add_title_last')}
|
|
</Text>
|
|
)
|
|
}
|
|
|
|
const styles = createStyle({
|
|
title: {
|
|
textAlign: 'center',
|
|
paddingTop: 15,
|
|
paddingBottom: 15,
|
|
},
|
|
})
|