xref: /MusicFree/src/components/base/button.tsx (revision b882a19d884fffa32f7c8cef31652b909dceaa0f)
1import React from 'react';
2import {Button} from 'react-native-paper';
3import ThemeText from './themeText';
4
5interface IButtonProps {
6    children: string;
7    onPress?: () => void;
8}
9export default function (props: IButtonProps) {
10    const {children, onPress} = props;
11    return (
12        <Button {...props} onPress={onPress}>
13            <ThemeText>{children}</ThemeText>
14        </Button>
15    );
16}
17