UNPKG

codenawis-theme

Version:

A frontity theme by @mymakarim @codenawis

17 lines (14 loc) 381 B
import React from "react"; import { connect } from "frontity"; import HoverLink from "../utitlity/HoverLink"; const Author = ({ state, authorId }) => { const author = state.source.author[authorId]; return ( <small> <HoverLink link={author?.link}> <b>{author?.name}</b> </HoverLink> </small> ); }; export default connect(Author);