A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
type FeaturedSummaryLayoutInput = {
sections: string[];
canFeatureSummary: boolean;
};
type FeaturedSummaryLayout = {
featuredSummarySection: "summary" | undefined;
regularSections: string[];
};
export const getFeaturedSummaryLayout = ({
sections,
canFeatureSummary,
}: FeaturedSummaryLayoutInput): FeaturedSummaryLayout => {
const featuredSummarySection = canFeatureSummary && sections.includes("summary") ? "summary" : undefined;
return {
featuredSummarySection,
regularSections: featuredSummarySection ? sections.filter((section) => section !== "summary") : sections,
};
};