import React from 'react';
import {ImageBackground, StatusBar, StyleSheet, View} from 'react-native';
import rpx from '@/utils/rpx';
import {useRoute} from '@react-navigation/native';
import NavBar from './components/navBar';
import MusicBar from '@/components/musicBar';
import MusicList from './components/musicList';
import { SafeAreaView } from 'react-native-safe-area-context';

interface ISheetDetailProps {}
export default function SheetDetail(props: ISheetDetailProps) {
  const route = useRoute<any>();
  const id = route.params?.id ?? 'favorite';

  return (
    <SafeAreaView style={style.wrapper}>
      <StatusBar></StatusBar>
      <NavBar></NavBar>
      <MusicList></MusicList>
      <MusicBar></MusicBar>
    </SafeAreaView>
  );
}

const style = StyleSheet.create({
  wrapper: {
    width: rpx(750),
    flex: 1,
  },
});
