Files
jellyfin-audio-player/src/components/Modal.tsx

28 lines
638 B
TypeScript
Raw Normal View History

2020-06-17 14:58:04 +02:00
import React from 'react';
import styled from 'styled-components/native';
import { SafeAreaView } from 'react-native';
2020-07-26 14:45:32 +02:00
import { colors } from './Colors';
2020-06-17 14:58:04 +02:00
const Background = styled.View`
padding: 100px 25px;
flex: 1;
`;
const Container = styled.View`
border-radius: 20px;
flex: 1;
`;
const Modal: React.FC = ({ children }) => {
return (
2020-07-26 14:45:32 +02:00
<Background style={colors.modal}>
<SafeAreaView style={{ flex: 1 }}>
<Container style={colors.view}>
2020-06-17 14:58:04 +02:00
{children}
</Container>
</SafeAreaView>
</Background>
);
};
export default Modal;