import React from "react" import Style from "./RepositorySummaryBase.module.css" import classNames from "classnames" import {FontAwesomeIcon} from "@fortawesome/react-fontawesome" import Button from "../base/Button" import { faArchive, faPencilAlt, faTrash } from "@fortawesome/free-solid-svg-icons" /** * A long line representing a repository in a list. * * @param icon - The FontAwesome IconDefinition that represents the repository. * @param title - The title of the repository. * @todo What goes in the details field? * @param details - Whatever should be rendered in the details field. * @param startDate - The start date of the repository. * @param canDelete - If the Delete button should be displayed or not. * @param canEdit - If the Edit button should be displayed or not. * @param canArchive - If the Archive button should be displayed or not. * @param className - Additional class(es) to be added to the outer box. * @param props - Additional props to pass to the outer box. * @returns {JSX.Element} * @constructor */ export default function RepositorySummaryBase( { icon, title, details, startDate, canDelete, canEdit, canArchive, className, ...props } ) { return (
{title}
{startDate}
{details}
{canDelete ? : null} {canEdit ? : null} {canArchive ? : null}
) }