import dynamic from 'next/dynamic'; import type { ComponentType, FC } from 'react'; import type { ArrowOrientation, ArrowProps } from './icons-paths'; const ArrowIconPaths: ComponentType = dynamic(async () => import('./icons-paths').then((mod) => mod.ArrowIconPaths) ); const CCBySAIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.CCBySAIconPaths) ); const CareerIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.CareerIconPaths) ); const CogIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.CogIconPaths) ); const ComputerIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.ComputerIconPaths) ); const CrossIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.CrossIconPaths) ); const EnvelopIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.EnvelopIconPaths) ); const FeedIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.FeedIconPaths) ); const HelpIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.HelpIconPaths) ); const HomeIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.HomeIconPaths) ); const MagnifyingGlassIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.MagnifyingGlassIconPaths) ); const MoonIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.MoonIconPaths) ); const PostsStackIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.PostsStackIconPaths) ); const SunIconPaths = dynamic(async () => import('./icons-paths').then((mod) => mod.SunIconPaths) ); export type SVGIconOrientation = ArrowOrientation; export type SVGIconShape = | 'arrow' | 'career' | 'cc-by-sa' | 'cog' | 'computer' | 'cross' | 'envelop' | 'feed' | 'help' | 'home' | 'magnifying-glass' | 'moon' | 'posts-stack' | 'sun'; export type SVGPathsProps = { /** * The icon orientation. Only used with arrow icon. * * @default 'right' */ orientation?: SVGIconOrientation; /** * The icon shape. */ shape: SVGIconShape; }; export const SVGPaths: FC = ({ orientation = 'right', shape, }) => { switch (shape) { case 'arrow': return ; case 'career': return ; case 'cc-by-sa': return ; case 'cog': return ; case 'computer': return ; case 'cross': return ; case 'envelop': return ; case 'feed': return ; case 'help': return ; case 'home': return ; case 'magnifying-glass': return ; case 'moon': return ; case 'posts-stack': return ; case 'sun': default: return ; } };