Files
formbricks/apps/web/modules/ui/components/array-response/index.tsx
T
Dhruwang Jariwala 9dad06222d chore: move ui components to modules (#4342)
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
2024-11-21 17:58:15 +00:00

20 lines
389 B
TypeScript

interface ArrayResponseProps {
value: string[];
}
export const ArrayResponse = ({ value }: ArrayResponseProps) => {
return (
<div className="my-1 font-normal text-slate-700" dir="auto">
{value.map(
(item, index) =>
item && (
<div key={index}>
{item}
<br />
</div>
)
)}
</div>
);
};