@magicbell/magicbell-react
Version:
React components for building a notification inbox for your app
15 lines (14 loc) • 556 B
TypeScript
import { INotification } from '@magicbell/react-headless';
import { HTMLAttributes, ReactNode } from 'react';
export type Props = {
notification: INotification;
children: ReactNode;
} & HTMLAttributes<HTMLDivElement>;
/**
* A container for the `ClickableNotification` component. The style is taken
* from the theme.
*
* @example
* <StyledContainer notification={notification} onClick={openActionUrl} />
*/
export default function StyledContainer({ notification, children, ...props }: Props): import("@emotion/react/jsx-runtime").JSX.Element;