security-checklist/components/ChecklistItem/Heading.js
2019-01-13 12:12:45 -08:00

15 lines
365 B
JavaScript

// @flow
import React from 'react';
import { Title, Description } from './style';
import type { ChecklistResource } from '../../types';
type Props = {
resource: ChecklistResource,
};
export const Heading = ({ resource }: Props) => (
<React.Fragment>
<Title>{resource.title}</Title>
<Description source={resource.description} />
</React.Fragment>
);