mirror of
https://github.com/flarum/core.git
synced 2025-10-26 21:21:28 +01:00
27 lines
748 B
TypeScript
27 lines
748 B
TypeScript
import Component from '../../common/Component';
|
|
import type Mithril from 'mithril';
|
|
export interface IWelcomeHeroAttrs {
|
|
}
|
|
/**
|
|
* The `WelcomeHero` component displays a hero that welcomes the user to the
|
|
* forum.
|
|
*/
|
|
export default class WelcomeHero extends Component<IWelcomeHeroAttrs> {
|
|
/**
|
|
* @deprecated Extend the `isHidden` method instead.
|
|
*/
|
|
hidden: boolean;
|
|
oninit(vnode: Mithril.Vnode<IWelcomeHeroAttrs, this>): void;
|
|
view(vnode: Mithril.Vnode<IWelcomeHeroAttrs, this>): JSX.Element | null;
|
|
/**
|
|
* Hide the welcome hero.
|
|
*/
|
|
hide(): void;
|
|
/**
|
|
* Determines whether the welcome hero should be hidden.
|
|
*
|
|
* @returns if the welcome hero is hidden.
|
|
*/
|
|
isHidden(): boolean;
|
|
}
|