feat(SW-368): added link chips component
This commit is contained in:
20
components/TempDesignSystem/LinkChips/index.tsx
Normal file
20
components/TempDesignSystem/LinkChips/index.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import LinkChip from "./Chip"
|
||||
import { LinkChipsProps } from "./linkChips"
|
||||
|
||||
import styles from "./linkChips.module.css"
|
||||
|
||||
export default function LinkChips({ chips }: LinkChipsProps) {
|
||||
if (!chips.length) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<ul className={styles.linkChips}>
|
||||
{chips.map(({ url, title }) => (
|
||||
<li key={`link-chip-${title}`}>
|
||||
<LinkChip url={url} title={title} />
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user