mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
16 lines
402 B
JavaScript
16 lines
402 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import { Title, Description } from './style';
|
|
import type { ChecklistResource } from '../../types';
|
|
|
|
type Props = {
|
|
resource: ChecklistResource,
|
|
isChecked: boolean,
|
|
};
|
|
|
|
export const Heading = ({ resource, isChecked }: Props) => (
|
|
<React.Fragment>
|
|
<Title>{resource.title}</Title>
|
|
<Description>{resource.description}</Description>
|
|
</React.Fragment>
|
|
);
|