mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
15 lines
365 B
JavaScript
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>
|
|
);
|