farmcontrol-server/src/app/components/MissingPlaceholder.jsx
Tom Butcher 1728c08e39 Rename UI source directory from src/electron to src/app.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-28 22:02:57 +01:00

30 lines
646 B
JavaScript

import { Card, Flex, Typography } from "antd";
import InfoCircleIcon from "../icons/InfoCircleIcon";
import PropTypes from "prop-types";
const { Text } = Typography;
const MissingPlaceholder = ({ message }) => {
return (
<Card size="small">
<Flex
justify="center"
gap={"small"}
style={{ height: "100%" }}
align="center"
>
<Text type="secondary">
<InfoCircleIcon />
</Text>
<Text type="secondary">{message}</Text>
</Flex>
</Card>
);
};
MissingPlaceholder.propTypes = {
message: PropTypes.string.isRequired,
};
export default MissingPlaceholder;