mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 06:01:09 +02:00
- Move finance, mail, moodlit to apps-archived for later development - Rename games/voxel-lava to games/voxelava 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
642 B
TypeScript
25 lines
642 B
TypeScript
import { forwardRef } from 'react';
|
|
import { Text, Pressable, PressableProps, View } from 'react-native';
|
|
|
|
type ButtonProps = {
|
|
title: string;
|
|
} & PressableProps;
|
|
|
|
export const Button = forwardRef<View, ButtonProps>(({ title, ...pressableProps }, ref) => {
|
|
return (
|
|
<Pressable
|
|
ref={ref}
|
|
{...pressableProps}
|
|
className={`${styles.button} ${pressableProps.className}`}
|
|
>
|
|
<Text className={styles.buttonText}>{title}</Text>
|
|
</Pressable>
|
|
);
|
|
});
|
|
|
|
Button.displayName = 'Button';
|
|
|
|
const styles = {
|
|
button: 'items-center bg-indigo-500 rounded-[28px] shadow-md p-4',
|
|
buttonText: 'text-white text-lg font-semibold text-center',
|
|
};
|