import React from 'react';
import BulkSessionsCard from 'src/components/bulkSessionsCard';
import { ButtonType, IconType } from 'src/components/bulkSessionsCard/types';

interface ProductCreationSubmitFailedCardProps {
    createdAt: string;
    fileName: string;
    downloadLink: string;
}

const ProductCreationSubmitFailedCard = ({
    createdAt,
    fileName,
    downloadLink,
}: ProductCreationSubmitFailedCardProps) => {
    return (
        <BulkSessionsCard
            titleText={$t(
                'bulkDigitalAudioSidecar.productCreationSubmitFailedCard.title'
            )}
            bodyText={$t(
                'bulkDigitalAudioSidecar.productCreationSubmitFailedCard.body'
            )}
            iconType={IconType.Success}
            buttonType={ButtonType.Report}
            createdAt={createdAt}
            fileName={fileName}
            downloadLink={downloadLink}
        />
    );
};

export default ProductCreationSubmitFailedCard;
