mirror of
https://github.com/Jellify-Music/App.git
synced 2026-02-27 22:29:37 -06:00
22 lines
506 B
TypeScript
22 lines
506 B
TypeScript
import { Button as TamaguiButton } from 'tamagui';
|
|
import { styles } from './text';
|
|
|
|
interface ButtonProps {
|
|
children: string;
|
|
onPress: () => void;
|
|
disabled: boolean;
|
|
}
|
|
|
|
export default function Button(props: ButtonProps): React.JSX.Element {
|
|
|
|
return (
|
|
<TamaguiButton
|
|
style={styles.heading}
|
|
disabled={props.disabled}
|
|
marginVertical={30}
|
|
onPress={props.onPress}
|
|
>
|
|
{ props.children }
|
|
</TamaguiButton>
|
|
)
|
|
} |