1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-10 17:47:41 +01:00
smov/src/components/text/DotList.tsx
mrjvs 5a5f3e8b8c a whole bunch of final todos
Co-authored-by: William Oldham <github@binaryoverload.co.uk>
Co-authored-by: Jip Frijlink <JipFr@users.noreply.github.com>
2023-11-24 17:11:00 +01:00

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]">&#9679;</span>
) : null}
{item}
</span>
))}
</p>
);
}