import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["a"]; type $Props = { /** * Specify the `href` attribute to render an anchor. * Omit it to render a button (for actions like "Log out" or "Change theme"). */ href?: string | undefined; /** * Specify an icon to render at the end of the item. * Use the `icon` slot for full control over the rendered icon. */ icon?: Icon | undefined; /** * Obtain a reference to the HTML element (anchor or button). * @default null */ ref?: null | HTMLAnchorElement | HTMLButtonElement; /** Leading avatar rendered before the label. The label truncates to make room for it. */ avatar?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type ProfileMenuItemProps = Omit<$RestProps, keyof $Props> & $Props; export default class ProfileMenuItem extends SvelteComponentTyped< ProfileMenuItemProps, { click: WindowEventMap["click"]; keydown: WindowEventMap["keydown"]; }, { default: Record; /** Leading avatar rendered before the label. The label truncates to make room for it. */ avatar: Record; icon: Record; } > {}