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