mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 21:01:25 +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>
26 lines
665 B
TypeScript
26 lines
665 B
TypeScript
import React from 'react';
|
|
import { Text, View } from 'react-native';
|
|
|
|
import { EditScreenInfo } from './EditScreenInfo';
|
|
|
|
type ScreenContentProps = {
|
|
title: string;
|
|
path: string;
|
|
children?: React.ReactNode;
|
|
};
|
|
|
|
export const ScreenContent = ({ title, path, children }: ScreenContentProps) => {
|
|
return (
|
|
<View className={styles.container}>
|
|
<Text className={styles.title}>{title}</Text>
|
|
<View className={styles.separator} />
|
|
<EditScreenInfo path={path} />
|
|
{children}
|
|
</View>
|
|
);
|
|
};
|
|
const styles = {
|
|
container: `items-center flex-1 justify-center bg-black`,
|
|
separator: `h-[1px] my-7 w-4/5 bg-gray-800`,
|
|
title: `text-xl font-bold text-white`,
|
|
};
|