import {View} from "react-native";
import React, {ReactNode} from "react";
import {Card, Text} from "react-native-paper";
import {LucideIcon, LucideProps} from "lucide-react-native";
export function AMUIStatusAlert(props: { title: string, color: string, icon: LucideIcon, children?: ReactNode }) {
return (
{renderIconWithProps(props.icon, {size: 22, color: props.color})}
{props.title}
{props.children}
);
}
function renderIconWithProps(icon: LucideIcon, additionalProps: Partial) {
return React.cloneElement(React.createElement(icon), additionalProps);
}