import React from 'react'; import { CoverProps } from '@friends-library/types'; import { overridable, getHtmlFragments, prepareAuthor } from './helpers'; import { dynamifyCss } from './css/helpers'; import LogoIcon from './LogoIcon'; import FrontMain from './FrontMain'; type Props = Pick< CoverProps, | 'customCss' | 'isbn' | 'customHtml' | 'lang' | 'author' | 'showGuides' | 'title' | 'isCompilation' | 'scope' | 'scaler' > & { style?: { [k in string]: number | string }; }; const FrontInner: React.FC = (props) => { const { lang, author, style, customHtml, customCss, title, isCompilation } = props; const fragments = getHtmlFragments(customHtml); return (
{lang === `es` ? `Biblioteca de los Amigos` : `Friends Library Publishing`}
{overridable( `author`, fragments,

{prepareAuthor(author, title, isCompilation, lang)}

, )}
{customCss && ( )}
); }; export default FrontInner;