mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 03:53:37 -06:00
29 lines
885 B
TypeScript
29 lines
885 B
TypeScript
import ActionButton, { ActionButtonProps } from "../react/ActionButton";
|
|
import Dropdown, { DropdownProps } from "../react/Dropdown";
|
|
|
|
export interface LaunchBarWidgetProps {
|
|
isHorizontalLayout: boolean;
|
|
}
|
|
|
|
export function LaunchBarActionButton(props: Omit<ActionButtonProps, "className" | "noIconActionClass" | "titlePosition">) {
|
|
return (
|
|
<ActionButton
|
|
className="button-widget launcher-button"
|
|
noIconActionClass
|
|
titlePosition="right"
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export function LaunchBarDropdownButton({ children, ...props }: Pick<DropdownProps, "title" | "text" | "children">) {
|
|
return (
|
|
<Dropdown
|
|
className="right-dropdown-widget"
|
|
buttonClassName="right-dropdown-button launcher-button"
|
|
hideToggleArrow
|
|
{...props}
|
|
>{children}</Dropdown>
|
|
)
|
|
}
|