client/shared note info bar: improve appearance

This commit is contained in:
Adorian Doran
2025-11-09 02:14:43 +02:00
parent c4603fce25
commit 50869d29db
4 changed files with 6 additions and 13 deletions

View File

@@ -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>
}