mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-20 10:12:09 +00:00
19 lines
460 B
TypeScript
19 lines
460 B
TypeScript
export interface DotListProps {
|
|
content: string[];
|
|
className?: string;
|
|
}
|
|
|
|
export function DotList(props: DotListProps) {
|
|
return (
|
|
<p className={`font-semibold text-type-secondary ${props.className || ""}`}>
|
|
{props.content.map((item, index) => (
|
|
<span key={item}>
|
|
{index !== 0 ? (
|
|
<span className="mx-[0.6em] text-[1em]">●</span>
|
|
) : null}
|
|
{item}
|
|
</span>
|
|
))}
|
|
</p>
|
|
);
|
|
}
|