mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-03 03:14:34 -05:00
9dad06222d
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
35 lines
961 B
TypeScript
35 lines
961 B
TypeScript
import { UsersIcon } from "lucide-react";
|
|
import { useTranslations } from "next-intl";
|
|
|
|
interface SegmentTitleProps {
|
|
title?: string;
|
|
description?: string | null | undefined;
|
|
isPrivate?: boolean;
|
|
}
|
|
|
|
export const SegmentTitle = ({ title, description, isPrivate }: SegmentTitleProps) => {
|
|
const t = useTranslations();
|
|
|
|
if (isPrivate) {
|
|
return (
|
|
<div className="mb-4">
|
|
<p className="text-sm font-semibold text-slate-800">
|
|
{t("environments.surveys.edit.send_survey_to_audience_who_match")}
|
|
</p>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<div className="flex items-center gap-3">
|
|
<div className="rounded-full border border-slate-200 bg-white p-2">
|
|
<UsersIcon className="h-6 w-6 text-slate-600" />
|
|
</div>
|
|
<div className="flex flex-col">
|
|
<h3 className="font-medium text-slate-900">{title}</h3>
|
|
<p className="text-sm text-slate-500">{description}</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|