import React from "react";
import { Text, TextProps } from "@arc-ui/components/Text";
import { VerticalSpace } from "@arc-ui/components/VerticalSpace";
export const MultiLineText = ({ text, ...textProps }: MultiLineTextProps) => {
if (!text) return null;
const paragraphs = text.split(/\\n|\n/).filter((p) => p.trim());
return (
<>
{paragraphs.map((paragraph, index) => (
{index > 0 && }
{paragraph}
))}
>
);
};
interface MultiLineTextProps extends Partial {
text?: string;
}