import React from "react";
import {
  Html,
  Body,
  Head,
  Heading,
  Hr,
  Container,
  Preview,
  Section,
  Text,
} from "@react-email/components";
import { Tailwind } from "@react-email/tailwind";

type OrderFormEmailProps = {
  order: string;
  senderEmail: string;
};

export default function OrderFormEmailClient({ order, senderEmail }: OrderFormEmailProps) {
  return (
    <Html>
      <Head />
      <Preview>New order from kevo&apos;s attire.</Preview>
      <Tailwind>
        <Body className="bg-slate-700">
          <Container>
            <Section className="bg-white border-black my-10 px-10 py-4 rounded-md">
              <Heading className="leading-tight">Thank you for ordering with us! We will be sending a PayPal invoice shortly in order to process your order.</Heading>
              <Text>{order}</Text>
              <Hr />
            </Section>
          </Container>
        </Body>
      </Tailwind>
    </Html>
  );
}
