Files
overleaf-cep/services/web/frontend/js/shared/components/ds/ds-notification.tsx
Tim Down 452d854d5b Merge pull request #29972 from overleaf/td-ciam-onboarding
Unified access onboarding data collection pages

GitOrigin-RevId: c56a3d52f749883eeb2302e22aaf6bdf1239160c
2025-12-08 09:04:54 +00:00

29 lines
676 B
TypeScript

import Notification, {
NotificationProps,
} from '@/shared/components/notification'
import classNames from 'classnames'
import { WarningCircle, Info } from '@phosphor-icons/react'
type DSNotificationProps = Pick<
NotificationProps,
'content' | 'customIcon' | 'className'
> & {
type: 'info' | 'error'
}
function DSNotification(props: DSNotificationProps) {
const { type, className, ...rest } = props
const customIcon = type === 'info' ? <Info /> : <WarningCircle />
return (
<Notification
type={type}
customIcon={customIcon}
className={classNames('notification-ds', className)}
{...rest}
/>
)
}
export default DSNotification