mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
22 lines
520 B
TypeScript
22 lines
520 B
TypeScript
import "./no-items.scss";
|
|
|
|
import * as React from "react";
|
|
import { Trans } from "@lingui/macro";
|
|
import { cssNames, ClassName } from "../../utils";
|
|
|
|
interface Props {
|
|
className?: ClassName;
|
|
children?: React.ReactNode;
|
|
}
|
|
|
|
export function NoItems(props: Props): JSX.Element {
|
|
const { className, children } = props;
|
|
return (
|
|
<div className={cssNames("NoItems flex box grow", className)}>
|
|
<div className="box center">
|
|
{children || <Trans>Item list is empty</Trans>}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|