import React from "react";
import PropTypes from "prop-types";
import { Typography, List, Button, Flex } from "antd";
import PrinterIcon from "../icons/PrinterIcon";
import InfoCircleIcon from "../icons/InfoCircleIcon";
import StateDisplay from "./StateDisplay";
import DocumentPrinterIcon from "../icons/DocumentPrinterIcon";
import MissingPlaceholder from "./MissingPlaceholder";
const { Text } = Typography;
const PrinterList = ({ printers, type = "printer" }) => {
if ((printers?.length || 0) <= 0) {
return (
);
}
return (
(
{type == "printer" && }
{type == "documentPrinter" && }
{printer.name || printer._id}
}
type="text"
size="small"
/>
}
/>
)}
/>
);
};
PrinterList.propTypes = {
printers: PropTypes.array.isRequired,
};
export default PrinterList;