Files
formbricks-formbricks/apps/web/modules/email/components/email-question-header.tsx
2025-10-16 15:16:09 +02:00

22 lines
600 B
TypeScript

import { Text } from "@react-email/components";
import { cn } from "@/lib/cn";
interface QuestionHeaderProps {
headline: string;
subheader?: string;
className?: string;
}
export function QuestionHeader({ headline, subheader, className }: QuestionHeaderProps): React.JSX.Element {
return (
<>
<Text className={cn("text-question-color m-0 block text-base font-semibold leading-6", className)}>
{headline}
</Text>
{subheader && (
<Text className="text-question-color m-0 block p-0 text-sm font-normal leading-6">{subheader}</Text>
)}
</>
);
}