xref: /MusicFree/src/pages/musicDetail/components/bottom/index.tsx (revision 734113be9d256a2b4d36bb272d6d3565beaeb236)
1import React from 'react';
2import {StyleSheet, View} from 'react-native';
3import rpx from '@/utils/rpx';
4import SeekBar from './seekBar';
5import PlayControl from './playControl';
6import Opertions 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            <Opertions />
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