import { ReactNode } from "react" import clsx from "clsx" import Tooltip from "../../atoms/tooltip" type Props = { fileName: string fileSize?: string errorMessage?: string hasError?: boolean icon?: ReactNode onClick?: () => void } const BatchJobFileCard = ({ fileName, fileSize, icon, onClick, hasError, errorMessage, }: Props) => { const preparedOnClick = onClick ?? (() => void 0) return (
{!!icon && icon}
{fileName}
{errorMessage} ) : null } > {!!fileSize && (
{fileSize}
)}
) } export default BatchJobFileCard