mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat(core): add local ai onboarding dialog (#6600)
This commit is contained in:
@@ -30,6 +30,7 @@ export const NotificationCard = ({ notification }: NotificationCardProps) => {
|
||||
footer,
|
||||
alignMessage = 'title',
|
||||
onDismiss,
|
||||
rootAttrs,
|
||||
} = notification;
|
||||
|
||||
const onActionClicked = useCallback(() => {
|
||||
@@ -49,7 +50,8 @@ export const NotificationCard = ({ notification }: NotificationCardProps) => {
|
||||
[styles.iconColor]: getIconColor(style, theme, iconColor),
|
||||
})}
|
||||
data-with-icon={icon ? '' : undefined}
|
||||
className={styles.card}
|
||||
{...rootAttrs}
|
||||
className={clsx(styles.card, rootAttrs?.className)}
|
||||
>
|
||||
{thumb}
|
||||
<div className={styles.cardInner}>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import type { HTMLAttributes, ReactNode } from 'react';
|
||||
|
||||
import type { ButtonProps } from '../button';
|
||||
|
||||
@@ -23,6 +23,8 @@ export interface Notification {
|
||||
autoClose?: boolean;
|
||||
};
|
||||
|
||||
rootAttrs?: HTMLAttributes<HTMLDivElement>;
|
||||
|
||||
// custom slots
|
||||
thumb?: ReactNode;
|
||||
title?: ReactNode;
|
||||
|
||||
Reference in New Issue
Block a user