mirror of
https://github.com/zadam/trilium.git
synced 2026-03-11 06:30:23 +01:00
22 lines
417 B
TypeScript
22 lines
417 B
TypeScript
import "./NoItems.css";
|
|
|
|
import { ComponentChildren } from "preact";
|
|
|
|
import Icon from "./Icon";
|
|
|
|
interface NoItemsProps {
|
|
icon: string;
|
|
text: string;
|
|
children?: ComponentChildren;
|
|
}
|
|
|
|
export default function NoItems({ icon, text, children }: NoItemsProps) {
|
|
return (
|
|
<div className="no-items">
|
|
<Icon icon={icon} />
|
|
{text}
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|