import { useIntl } from "react-intl" import { Button, ButtonProps } from "../../Button" import { IconButton } from "../../IconButton" import { Typography } from "../../Typography" import styles from "./modalContent.module.css" import type { ReactNode } from "react" interface ModalContentProps { title?: string content: ReactNode primaryAction: | (Pick< ButtonProps, "onPress" | "variant" | "isPending" | "isDisabled" | "type" > & { label: string }) | null secondaryAction: | (Pick & { label: string }) | null onClose?: () => void } export function ModalContentWithActions({ title, content, primaryAction, secondaryAction, onClose, }: ModalContentProps) { const intl = useIntl() return ( <> {title && (

{title}

)}
{content}
) }