--- import type { HTMLAttributes } from "astro/types"; interface Props extends HTMLAttributes<"section"> { maxWidth?: "none" | String; colReverse?: boolean; wrapperClass?: string; } const { maxWidth = "1080px", colReverse = true, wrapperClass = "", ...props } = Astro.props; const twoColumn = Astro.slots.has("left") || Astro.slots.has("right"); const className = `max-w-[${maxWidth}] w-full px-5 md:p-0 flex gap-4` + (twoColumn ? ` ${maxWidth == "none" ? "justify-center" : "justify-between md:justify-evenly lg:justify-between"} ${colReverse ? "flex-col-reverse" : "flex-col"} md:flex-row md:items-center md:flex-row` : "") + (props.class ? ` ${props.class}` : ""); ---
{twoColumn ? (
) : ( )}