'use client'; import React from 'react'; import { ShapeCircleDashIcon } from '../icons'; export interface BulletListItem { text: string; id?: string; } export interface BulletListProps { items: string[] | BulletListItem[]; bulletColor?: string; bulletIcon?: React.ComponentType<{ size?: number; color?: string; className?: string }>; bulletSize?: number; textClassName?: string; itemClassName?: string; containerClassName?: string; spacing?: 'sm' | 'md' | 'lg'; } const spacingMap = { sm: 'space-y-2', md: 'space-y-3', lg: 'space-y-4' }; export function BulletList({ items, bulletColor = 'var(--color-text-primary)', bulletIcon: BulletIcon = ShapeCircleDashIcon, bulletSize = 16, textClassName = 'text-h4 text-ods-text-primary', itemClassName = 'flex items-start gap-3', containerClassName = '', spacing = 'md' }: BulletListProps) { const normalizedItems = items.map(item => typeof item === 'string' ? { text: item, id: undefined } : item ); return (
{normalizedItems.map((item, index) => (
{/*
*/}
{/*
*/}

{item.text}

))}
); }