mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
client/shared note message: convert to an info bar
This commit is contained in:
@@ -3,12 +3,13 @@ import { ComponentChildren } from "preact";
|
||||
import "./InfoBar.css";
|
||||
|
||||
export type InfoBarParams = {
|
||||
type: "prominent" | "subtle"
|
||||
type: "prominent" | "subtle",
|
||||
className: string;
|
||||
children: ComponentChildren;
|
||||
};
|
||||
|
||||
export default function InfoBar(props: InfoBarParams) {
|
||||
return <div className={`info-bar info-bar-${props.type}`}>
|
||||
return <div className={`info-bar ${props.className} info-bar-${props.type}`}>
|
||||
{props?.children}
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user