/** @jsxImportSource @emotion/react */ import { css } from '@emotion/react'; import { ReactNode } from 'react'; import StyledHeader from './StyledHeader.js'; export interface Props { title: ReactNode; actions?: ReactNode; } /** * Header for the notification inbox. It renders a "Mark All Read" button, * which invokes the `onAllRead` callback. * * The component must be wrapped in a {@link MagicBellThemeProvider} component. * * @example *
mark as read>} /> */ export default function Header({ title, actions }: Props) { return (
{title}
* + * { margin-left: 8px; } `} > {actions}
); }