"use client"; /** * Figma: "Sections / SectionNumber" (see registry) */ import { memo } from "react"; import { getAssetPath, sectionNumberPath } from "../../../lib/assetUtils"; interface SectionNumberProps { number: number; } const SectionNumber = memo(({ number }) => { const getImageSrc = (num: number): string => { const n = num === 2 || num === 3 ? num : 1; return getAssetPath(sectionNumberPath(n)); }; return (
{/* eslint-disable-next-line @next/next/no-img-element -- dynamic src from getImageSrc */} {`Section
{number}
); }); SectionNumber.displayName = "SectionNumber"; export default SectionNumber;