import React from 'react'; import {Appbar} from 'react-native-paper'; import {StyleSheet, View} from 'react-native'; import rpx from '@/utils/rpx'; import {useNavigation, useRoute} from '@react-navigation/native'; import usePrimaryColor from '@/hooks/usePrimaryColor'; import AppBarWithSearch from '@/components/base/appBarWithSearch'; import MusicSheet from '@/common/musicSheetManager'; import {ROUTE_PATH} from '@/entry/router'; interface IProps {} export default function (props: IProps) { const navigation = useNavigation(); const route = useRoute(); const id = route.params?.id ?? 'favorite'; const musicSheet = MusicSheet.useSheets(id); return ( { navigation.navigate(ROUTE_PATH.SEARCH_MUSIC_LIST, { musicList: musicSheet.musicList, }); }}> ); } const style = StyleSheet.create({ appbar: { shadowColor: 'transparent', flexDirection: 'row', width: rpx(750), }, });