"use client"; import { BottomActionButton, BottomActionButtonProps, } from "@/components/widgets/BottomActionButton/BottomActionButton"; import { useDynamicSize } from "@/hooks/DOM/useDynamicSize"; import { cn } from "@/lib/utils"; interface QuestionInformationProps extends React.ComponentProps<"div"> { image?: React.ReactNode; text?: React.ReactNode; bottomActionButtonProps?: BottomActionButtonProps; } function QuestionInformation({ image, text, bottomActionButtonProps, ...props }: QuestionInformationProps) { const { height: bottomActionButtonHeight, elementRef: bottomActionButtonRef, } = useDynamicSize({ defaultHeight: 132, }); return (
{image} {text} {bottomActionButtonProps && ( )}
); } export { QuestionInformation };