18 lines
389 B
TypeScript
18 lines
389 B
TypeScript
import { Text, View } from "react-native";
|
|
|
|
interface DescriptionProps {
|
|
title?: string;
|
|
description?: string;
|
|
}
|
|
export const Description = ({
|
|
title = "",
|
|
description = "",
|
|
}: DescriptionProps) => {
|
|
return (
|
|
<View className="flex-row gap-2 ">
|
|
<Text className="opacity-50 text-lg">{title}:</Text>
|
|
<Text className="text-lg">{description}</Text>
|
|
</View>
|
|
);
|
|
};
|