mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
381 B
TypeScript
18 lines
381 B
TypeScript
import React from 'react';
|
|
import { Chip, Grid } from '@mui/material';
|
|
|
|
export const ChipItems: React.FC<{
|
|
items: string[];
|
|
}> = React.memo((props) => {
|
|
return (
|
|
<Grid container spacing={1}>
|
|
{props.items.map((item) => (
|
|
<Grid key={item} item>
|
|
<Chip label={item} />
|
|
</Grid>
|
|
))}
|
|
</Grid>
|
|
);
|
|
});
|
|
ChipItems.displayName = 'ChipItems';
|