import React from "react"; import { VerticalSpace } from "@arc-ui/components/VerticalSpace"; import { SectionHeading, type SectionHeadingProps } from "../SectionHeading"; import { Download, type DownloadProps } from "@arc-ui/components/Download"; import { Columns, ColumnsCol } from "@arc-ui/components/Columns"; import { filterAttrs } from "@arc-ui/community-utils/filter-attrs"; import styles from "./DownloadList.module.css"; export const DownloadList: React.FC = ({ heading, id, headingLevel = "2", isHeadingWordWrap, content, downloads, alignment = "below", ...props }) => { return (
{" "}
{downloads.map((downloadProps, i) => ( {i !== downloads.length - 1 && } ))}
); }; export interface DownloadListProps extends Omit { /** * Set the list of `Download` components. */ downloads: DownloadProps[]; /** * Align the `Download` list below or to the right of the `SectionHeading`. */ alignment?: "below" | "right"; }