mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-12 22:14:54 +10:00
cfad352903
revert firebase changes
20 lines
564 B
JavaScript
20 lines
564 B
JavaScript
import React, { memo, useContext } from 'react';
|
|
import Markdown from '../../../components/shared/Markdown';
|
|
import { safetyCheck } from '../../../utils';
|
|
import PageContext from '../../../contexts/PageContext';
|
|
|
|
const ObjectiveA = () => {
|
|
const { data, heading: Heading } = useContext(PageContext);
|
|
|
|
return (
|
|
safetyCheck(data.objective, 'body') && (
|
|
<div>
|
|
<Heading>{data.objective.heading}</Heading>
|
|
<Markdown className="markdown text-sm">{data.objective.body}</Markdown>
|
|
</div>
|
|
)
|
|
);
|
|
};
|
|
|
|
export default memo(ObjectiveA);
|