Files
open-resume/src/app/components/Resume/ResumePDF/ResumePDFCustom.tsx
2023-06-23 23:13:48 -07:00

33 lines
770 B
TypeScript

import { View } from "@react-pdf/renderer";
import {
ResumePDFSection,
ResumePDFBulletList,
} from "components/Resume/ResumePDF/common";
import { styles } from "components/Resume/ResumePDF/styles";
import type { ResumeCustom } from "lib/redux/types";
export const ResumePDFCustom = ({
heading,
custom,
themeColor,
showBulletPoints,
}: {
heading: string;
custom: ResumeCustom;
themeColor: string;
showBulletPoints: boolean;
}) => {
const { descriptions } = custom;
return (
<ResumePDFSection themeColor={themeColor} heading={heading}>
<View style={{ ...styles.flexCol }}>
<ResumePDFBulletList
items={descriptions}
showBulletPoints={showBulletPoints}
/>
</View>
</ResumePDFSection>
);
};