1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 17:54:53 +01:00
market/src/components/atoms/Lists.tsx

21 lines
389 B
TypeScript
Raw Normal View History

2020-09-23 14:54:56 +02:00
import React, { ReactElement, ReactNode } from 'react'
2020-05-07 08:03:30 +02:00
import styles from './Lists.module.css'
2020-09-23 14:54:56 +02:00
export function ListItem({
children,
ol
}: {
children: ReactNode
ol?: boolean
}): ReactElement {
2020-05-07 08:03:30 +02:00
const classes = ol
? `${styles.item} ${styles.olItem}`
: `${styles.item} ${styles.ulItem}`
return (
<li className={classes}>
<span>{children}</span>
</li>
)
}