import { memo } from "react";
const LIGHT_POSITIONS = [4, 17, 30, 43, 56, 69, 82, 95];
/** 设备卡片的静态圣诞装饰:只占上沿,不接收点击或参与布局。 */
export default memo(function ChristmasCardDecoration() {
return (
{LIGHT_POSITIONS.map((position) => {
const ratio = position / 100;
// 与灯线的二次曲线保持一致;灯泡固定尺寸,不随宽屏拉伸。
const top = 2 + 26 * ratio * (1 - ratio);
return (
);
})}
);
});