mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-13 13:19:08 +01:00
20 lines
455 B
TypeScript
20 lines
455 B
TypeScript
export interface DotListProps {
|
|
content: string[];
|
|
className?: string;
|
|
}
|
|
|
|
export function DotList(props: DotListProps) {
|
|
return (
|
|
<p className={`text-denim-700 font-semibold ${props.className || ""}`}>
|
|
{props.content.map((item, index) => (
|
|
<span key={item}>
|
|
{index !== 0 ? (
|
|
<span className="mx-[0.6em] text-[1em]">●</span>
|
|
) : null}
|
|
{item}
|
|
</span>
|
|
))}
|
|
</p>
|
|
);
|
|
}
|