mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
28 lines
657 B
TypeScript
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>
|
|
);
|
|
}
|