Files
jellyfin-audio-player/src/screens/modals/Player/index.tsx

43 lines
1.5 KiB
TypeScript
Raw Normal View History

2020-06-16 17:51:51 +02:00
import React from 'react';
import MediaControls from './components/MediaControls';
import ProgressBar from './components/ProgressBar';
import NowPlaying from './components/NowPlaying';
import Queue from './components/Queue';
2022-01-02 22:50:49 +01:00
import ConnectionNotice from './components/ConnectionNotice';
2022-05-05 22:54:37 +02:00
import { GestureHandlerRootView } from 'react-native-gesture-handler';
2022-05-10 23:52:58 +02:00
import StreamStatus from './components/StreamStatus';
import {Platform} from 'react-native';
import BackButton from './components/Backbutton';
import Timer from './components/Timer';
import styled from 'styled-components/native';
import { ColoredBlurView } from '@/components/Colors.tsx';
import LyricsPreview from './components/LyricsPreview.tsx';
2020-06-16 17:51:51 +02:00
const Group = styled.View`
flex-direction: row;
justify-content: space-between;
`;
export default function Player() {
2020-06-16 17:51:51 +02:00
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<ColoredBlurView>
{Platform.OS === 'android' && (<BackButton />)}
<Queue header={(
<>
<NowPlaying />
<ConnectionNotice />
<StreamStatus />
<ProgressBar />
<MediaControls />
<Group>
<Timer />
</Group>
<LyricsPreview />
</>
)} />
</ColoredBlurView>
2022-05-05 22:54:37 +02:00
</GestureHandlerRootView>
2020-06-16 17:51:51 +02:00
);
}