mirror of
https://github.com/xitanggg/open-resume.git
synced 2023-07-20 23:08:37 +03:00
33 lines
770 B
TypeScript
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>
|
|
);
|
|
};
|