import { View, Text, Pressable } from "react-native";
import { ProposedEventChange } from "@calchat/shared";
import { useThemeStore } from "../stores/ThemeStore";
import { EventCardBase } from "./EventCardBase";
type ProposedEventCardProps = {
proposedChange: ProposedEventChange;
onConfirm: () => void;
onReject: () => void;
};
const ConfirmRejectButtons = ({
isDisabled,
respondedAction,
onConfirm,
onReject,
}: {
isDisabled: boolean;
respondedAction?: "confirm" | "reject";
onConfirm: () => void;
onReject: () => void;
}) => {
const { theme } = useThemeStore();
return (
Annehmen
Ablehnen
);
};
export const ProposedEventCard = ({
proposedChange,
onConfirm,
onReject,
}: ProposedEventCardProps) => {
const event = proposedChange.event;
// respondedAction is now part of the proposedChange
const isDisabled = !!proposedChange.respondedAction;
if (!event) {
return null;
}
return (
);
};