mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 19:21:23 +02:00
Wire up event-parser and event-estimator into the QuickEventOverlay title input. Typing natural language like "Meeting morgen 14 Uhr 1h @Arbeit" now shows a live parse preview, duration estimation from history, and conflict warnings. On submit, parsed values auto-fill form fields (date, time, calendar, location, recurrence, all-day). Co-Authored-By: Claude Opus 4.6 (1M context) <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',
|
|
};
|