import React from 'react' import * as AlertDialog from '@radix-ui/react-alert-dialog' import './index.scss' import Button from '~components/common/Button' import Overlay from '~components/common/Overlay' // Props interface Props { open: boolean title?: string message: string | React.ReactNode primaryAction?: () => void primaryActionText?: string primaryActionClassName?: string cancelAction: () => void cancelActionText: string } const Alert = (props: Props) => { return (
{props.title ? ( {props.title} ) : ( '' )} {props.message}
) } export default Alert