import Typography, { TypographyProps, } from "@/components/ui/Typography/Typography"; import { BottomActionButton } from "@/components/widgets/BottomActionButton/BottomActionButton"; import PrivacyTermsConsent from "@/components/widgets/PrivacyTermsConsent/PrivacyTermsConsent"; import { useDynamicSize } from "@/hooks/DOM/useDynamicSize"; import { cn } from "@/lib/utils"; export interface SoulmatePortraitProps extends Omit, "title"> { bottomActionButtonProps?: React.ComponentProps; privacyTermsConsentProps?: React.ComponentProps; title?: TypographyProps<"h2">; } export default function SoulmatePortrait({ bottomActionButtonProps, privacyTermsConsentProps, title, ...props }: SoulmatePortraitProps) { const { height: bottomActionButtonHeight, elementRef: bottomActionButtonRef, } = useDynamicSize({ defaultHeight: 132, }); return (
{title && ( )}
{bottomActionButtonProps && ( ) } /> )}
); }