import React, { useContext } from "react"
import BoxFull from "../base/BoxFull"
import ContextUser from "../../contexts/ContextUser"
import RepositorySummaryBase from "./RepositorySummaryBase"
import { faSearch } from "@fortawesome/free-solid-svg-icons"
/**
* A {@link BoxFull} listing all the user's archived repositories.
*
* @param repositories - Array of repositories to display in the box.
* @param refresh - Function that can be called to refresh the repositories list.
* @param props - Additional props to pass to the box.
* @returns {JSX.Element}
* @constructor
*/
export default function BoxRepositoriesArchived({ repositories, refresh, ...props }) {
const { user } = useContext(ContextUser)
let contents
if(repositories.length > 0) {
contents = repositories.map(repo => (
))
}
else {
contents = There's nothing here.
}
return (
{contents}
)
}