import React, { useEffect } from 'react';
import { audioSrc } from '../audio/kds_audio';
import KDSCard from '../CardContent';
export const KDSComponent = (props) => {
    const audio = new Audio(audioSrc);
    useEffect(() => {
        audio.play();
    }, []);
    const { buckets, payments, lastChanged, id, orderType, due, extra, deliveryAddress = {}, comments = [], users = [], } = props.order;
    return buckets ? (buckets.map((bucket, index) => (React.createElement(KDSCard, { bucket: bucket, bucketIndex: index, key: id, lastChanged: lastChanged, orderId: id, orderType: orderType, payments: payments, due: due, extra: extra, deliveryAddress: deliveryAddress, comments: comments, users: users })))) : (React.createElement("div", null, "No data"));
};
//# sourceMappingURL=index.js.map