UNPKG

@payfit/unity-components

Version:

36 lines (35 loc) 1.42 kB
import { ReactElement, ReactNode } from 'react'; import { AvatarPairProps } from '../../avatar/parts/AvatarPair.js'; type CommonProps = { avatar?: string; avatarPair?: ReactElement<AvatarPairProps>; title?: string; description?: ReactNode; badgeLabel?: string; /** * Use this to provide a custom context to the screen reader. Press this button to open the profile menu. */ menuTriggerDescription?: string; uploadAvatarCallback?: () => void; /** * Use this to provide a custom context to the screen reader. Default is "Press enter to change profile picture" */ uploadAvatarDescription?: string; /** * Use this to provide a custom context to the screen reader. Default is Change profile picture */ uploadAvatarLabel?: string; /** * This slot is used to render the update notification. */ updateNotificationSlot?: ReactNode; }; export type AppMenuFooterProps = CommonProps & { children?: ReactNode; computeSlot?: ReactNode; }; export type AppMenuFooterHeaderProps = CommonProps & { asMenuHeader?: boolean; }; export declare const AppMenuFooter: ({ avatar, avatarPair, badgeLabel, children, computeSlot, description, title, menuTriggerDescription, uploadAvatarCallback, uploadAvatarLabel, uploadAvatarDescription, updateNotificationSlot, }: AppMenuFooterProps) => import("react/jsx-runtime").JSX.Element; export {};