import React from "react"; import "../FulFillCardVer2.scss"; type item = { image?: string; badge?: string; name?: string; link?: string; sku?: string; type?: string; weight?: string; }; type FulFillCardVer2Props = { text1?: string; text2?: string; textcolumn1?: string; textcolumn2?: string; textcolumn3?: string; items?: item[]; text3?: string; text4?: string; }; const FulFillCardVer2: React.SFC = ({ items, text1, text2, text3, text4, textcolumn1, textcolumn2, textcolumn3 }: FulFillCardVer2Props) => { return (

{text1}

{text2}
{textcolumn1}
{textcolumn2}
{textcolumn3}
{items.map((data: item) => ( <>
true
{data.name}
{data.sku}
{data.type}
{data.weight}
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
))}
); }; FulFillCardVer2.defaultProps = { text1: "Mark as fulfilled", text2: "QUANTITY TO FULFILL", textcolumn1: "Items", textcolumn2: "Quantity", textcolumn3: "Weight", items: [ { image: "https://uploads-ssl.webflow.com/5bbed931f8149f332875c562/5bbf02acbd08906c00233766_Printer_small.jpg", badge: "1 of 1", name: "Faxtex Product Sample", link: "#0", sku: "SKU: 4827521", type: "M / Blue", weight: "0kg" }, { image: "https://cdn.shopify.com/s/files/1/0053/4508/3490/products/Photocamera_small.jpg?v=1538713910", badge: "5 of 10", name: "Donkix Product Sample", link: "#0", type: "M / Red / 1 Year", weight: "0kg" } ], text3: "TRACKING INFORMATION ", text4: "OPTIONAL" }; export default FulFillCardVer2;