import {
Architecture,
CardGiftcard,
Category,
Coffee,
Download,
EmojiEvents,
FontDownload,
Groups,
Language,
Link as LinkIcon,
Map,
Margin,
MenuBook,
Palette,
Person,
Sailing,
School,
Settings as SettingsIcon,
Share,
Style,
Twitter,
VolunteerActivism,
Work,
} from '@mui/icons-material';
import { Section as SectionRecord } from '@reactive-resume/schema';
import isEmpty from 'lodash/isEmpty';
import Basics from '@/components/build/LeftSidebar/sections/Basics';
import Location from '@/components/build/LeftSidebar/sections/Location';
import Profiles from '@/components/build/LeftSidebar/sections/Profiles';
import Section from '@/components/build/LeftSidebar/sections/Section';
import CustomCSS from '@/components/build/RightSidebar/sections/CustomCSS';
import Export from '@/components/build/RightSidebar/sections/Export';
import Layout from '@/components/build/RightSidebar/sections/Layout';
import Links from '@/components/build/RightSidebar/sections/Links';
import Settings from '@/components/build/RightSidebar/sections/Settings';
import Sharing from '@/components/build/RightSidebar/sections/Sharing';
import Templates from '@/components/build/RightSidebar/sections/Templates';
import Theme from '@/components/build/RightSidebar/sections/Theme';
import Typography from '@/components/build/RightSidebar/sections/Typography';
import { SidebarSection } from '@/types/app';
export const left: SidebarSection[] = [
{
id: 'basics',
icon: ,
component: ,
},
{
id: 'location',
icon: ,
component: ,
},
{
id: 'profiles',
icon: ,
component: ,
},
{
id: 'work',
icon: ,
component: ,
},
{
id: 'education',
icon: ,
component: ,
},
{
id: 'awards',
icon: ,
component: ,
},
{
id: 'certifications',
icon: ,
component: ,
},
{
id: 'publications',
icon: ,
component: ,
},
{
id: 'skills',
icon: ,
component: ,
},
{
id: 'languages',
icon: ,
component: ,
},
{
id: 'interests',
icon: ,
component: ,
},
{
id: 'volunteer',
icon: ,
component: (
),
},
{
id: 'projects',
icon: ,
component: ,
},
{
id: 'references',
icon: ,
component: ,
},
];
export const right: SidebarSection[] = [
{
id: 'templates',
icon: ,
component: ,
},
{
id: 'layout',
icon: ,
component: ,
},
{
id: 'typography',
icon: ,
component: ,
},
{
id: 'theme',
icon: ,
component: ,
},
{
id: 'css',
icon: ,
component: ,
},
{
id: 'sharing',
icon: ,
component: ,
},
{
id: 'export',
icon: ,
component: ,
},
{
id: 'settings',
icon: ,
component: ,
},
{
id: 'links',
icon: ,
component: ,
},
];
export const getCustomSections = (sections: Record): Array => {
if (isEmpty(sections)) return [];
return Object.entries(sections).reduce((acc, [id, section]) => {
if (section.type === 'custom') {
return [...acc, { ...section, id }];
}
return acc;
}, [] as Array);
};
const sections = [...left, ...right];
export default sections;