mirror of
https://github.com/Jellify-Music/App.git
synced 2026-02-08 03:28:29 -06:00
20 lines
477 B
TypeScript
20 lines
477 B
TypeScript
import { Button as TamaguiButton } from 'tamagui';
|
|
|
|
interface ButtonProps {
|
|
children?: string | undefined;
|
|
onPress?: () => void | undefined;
|
|
disabled?: boolean | undefined;
|
|
}
|
|
|
|
export default function Button(props: ButtonProps): React.JSX.Element {
|
|
|
|
return (
|
|
<TamaguiButton
|
|
disabled={props.disabled}
|
|
marginVertical={30}
|
|
onPress={props.onPress}
|
|
>
|
|
{ props.children }
|
|
</TamaguiButton>
|
|
)
|
|
} |