alxshelepenok/gatsby-starter-lumen

View on GitHub
src/components/Post/Content/Content.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";

import * as styles from "./Content.module.scss";

interface Props {
  title: string;
  body: string;
}

const Content: React.FC<Props> = ({ body, title }: Props) => (
  <div className={styles.content}>
    <h1 className={styles.title}>{title}</h1>
    <div className={styles.body} dangerouslySetInnerHTML={{ __html: body }} />
  </div>
);

export default Content;