mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 12:01:32 +02:00
Unified access onboarding data collection pages GitOrigin-RevId: c56a3d52f749883eeb2302e22aaf6bdf1239160c
29 lines
676 B
TypeScript
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
|