mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 05:40:02 -06:00
22 lines
600 B
TypeScript
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>
|
|
)}
|
|
</>
|
|
);
|
|
}
|