import { PageLink } from 'shared/components/page-link.mjs' import { Lightbox } from 'shared/components/lightbox.mjs' import { ImageWrapper } from 'shared/components/wrappers/img.mjs' import { Author } from './author.mjs' import { TimeAgo } from 'shared/components/mdx/meta.mjs' import { useTranslation } from 'next-i18next' import { MdxWrapper } from 'shared/components/wrappers/mdx.mjs' import { cloudflareImageUrl } from 'shared/utils.mjs' import Markdown from 'react-markdown' export const ns = ['common', 'posts'] export const PostArticle = (props) => { const { t } = useTranslation('common') return ( ) } const PostWrapper = ({ children }) =>
{children}
const PostMeta = ({ frontmatter, t }) => (
[{frontmatter.date}]
{frontmatter.designs?.map((design) => ( ))}
By{' '} {frontmatter.author || frontmatter.maker || 'FIXME: No displayname'}
) const PostImage = ({ imgId, frontmatter }) => (
{frontmatter.caption}
) const PostAuthor = ({ frontmatter }) => (
) const PostContent = (props) => props.MDX ? : const PostMDXContent = ({ MDX }) => (
{MDX}
) const PostPreviewContent = ({ body }) => (
{body}
)