managarten/apps-archived/moodlit/apps/mobile/components/Button.tsx
Till JS de6af126d6 feat(calendar): integrate NL parser into QuickEventOverlay
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>
2026-03-30 10:40:24 +02:00

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',
};