import { FC, ReactNode } from "react"; import { Button } from "../Button"; import styles from "./styles.module.css"; interface PopoverContentProps { title?: string; content: string; confirmText?: ReactNode; onConfirm?: () => void; withCancel?: boolean; handleClose?: () => void; } export const PopoverContent: FC = ({ title, content, confirmText = "Confirm", onConfirm, withCancel, handleClose, }) => ( <> {title &&
{title}
}
{content}
);