UNPKG

arredemo

Version:

Instantly build a static site for your package

32 lines (25 loc) 1.13 kB
import React from 'react' import useAppContext from 'app/context/useAppContext.mjs' import Badges from 'app/layout/components/Badges.jsx' const Company = ({company, company_url}) => <a href={company_url} target="_blank noopener noreferrer">{company}</a> const License = ({name}) => <a href={`https://opensource.org/licenses/${name}`} target="_blank noopener noreferrer">{name}</a> const Footer = () => { const context = useAppContext() const company= context.arreConfig.company const company_url= context.arreConfig.company_url //const url= context.arreConfig.url const license= context.pkgJson.license const pkgName = context.pkgJson.name return ( <footer> <Badges/> <div className="license"> <span className="package-name">{pkgName}</span> is sharpened by <Company company= {company} company_url= {company_url}/> under <License name={license}/> license. This site was built using <a href={`https://www.afialapis.com/os/arredemo`} target="_blank noopener noreferrer"><span className="package-name">arredemo</span></a>. </div> </footer> ) } export default Footer