1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 13:51:42 +02:00
market/src/components/atoms/Lists.tsx

21 lines
389 B
TypeScript

import React, { ReactElement, ReactNode } from 'react'
import styles from './Lists.module.css'
export function ListItem({
children,
ol
}: {
children: ReactNode
ol?: boolean
}): ReactElement {
const classes = ol
? `${styles.item} ${styles.olItem}`
: `${styles.item} ${styles.ulItem}`
return (
<li className={classes}>
<span>{children}</span>
</li>
)
}