xref: /MusicFree/src/pages/musicDetail/components/bottom/index.tsx (revision e5a0c4d718dd8de014c792b182a6f4128092b88f)
1import React from 'react';
2import {StyleSheet, View} from 'react-native';
3import rpx from '@/utils/rpx';
4import SeekBar from './seekBar';
5import PlayControl from './playControl';
6import Operations from './operations';
7import useOrientation from '@/hooks/useOrientation';
8
9export default function Bottom() {
10    const orientation = useOrientation();
11    return (
12        <View
13            style={[
14                style.wrapper,
15                orientation === 'horizonal'
16                    ? {
17                          height: rpx(236),
18                      }
19                    : undefined,
20            ]}>
21            <Operations />
22            <SeekBar />
23            <PlayControl />
24        </View>
25    );
26}
27
28const style = StyleSheet.create({
29    wrapper: {
30        width: '100%',
31        height: rpx(320),
32    },
33});
34