mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
18 lines
394 B
TypeScript
18 lines
394 B
TypeScript
|
|
import { ComponentChildren } from "preact";
|
||
|
|
|
||
|
|
import "./InfoBar.css";
|
||
|
|
|
||
|
|
export type InfoBarParams = {
|
||
|
|
type: "prominent" | "subtle"
|
||
|
|
children: ComponentChildren;
|
||
|
|
};
|
||
|
|
|
||
|
|
export default function InfoBar(props: InfoBarParams) {
|
||
|
|
return <div className={`info-bar info-bar-${props.type}`}>
|
||
|
|
{props?.children}
|
||
|
|
</div>
|
||
|
|
}
|
||
|
|
|
||
|
|
InfoBar.defaultProps = {
|
||
|
|
type: "prominent"
|
||
|
|
} as InfoBarParams
|