client/read only note info bar: refactor

This commit is contained in:
Adorian Doran
2025-11-07 23:45:48 +02:00
parent a844e1faab
commit 2f74b40095
6 changed files with 69 additions and 37 deletions

View File

@@ -0,0 +1,18 @@
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