mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
22 lines
507 B
TypeScript
22 lines
507 B
TypeScript
import "./no-items.scss"
|
|
|
|
import * as React from "react";
|
|
import { Trans } from "@lingui/macro";
|
|
import { cssNames, IClassName } from "../../utils";
|
|
|
|
interface Props {
|
|
className?: IClassName;
|
|
children?: React.ReactNode;
|
|
}
|
|
|
|
export function NoItems(props: Props) {
|
|
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>
|
|
)
|
|
}
|