1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/no-items/no-items.tsx
2022-04-06 10:34:16 -04:00

28 lines
657 B
TypeScript

/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import "./no-items.scss";
import React from "react";
import type { IClassName } from "../../utils";
import { cssNames } from "../../utils";
export interface NoItemsProps {
className?: IClassName;
children?: React.ReactNode;
}
export function NoItems(props: NoItemsProps) {
const { className, children } = props;
return (
<div className={cssNames("NoItems flex box grow", className)}>
<div className="box center">
{children || "Item list is empty"}
</div>
</div>
);
}