import { Title } from '@radix-ui/react-alert-dialog'; import { ComponentPropsWithRef } from 'react'; import { Heading, HeadingProps } from '../heading'; export type AlertDialogTitleProps = ComponentPropsWithRef & Omit & { variant?: HeadingProps['variant']; }; export function AlertDialogTitle({ children, variant = 'headline', size = 'small', ...props }: AlertDialogTitleProps) { return ( <Heading use="h2" variant={variant} size={size} {...props}> {children} </Heading> ); }