@plteam/chat-ui
Version:
CUI Kit is a free and open-source library for creating AI assistant chat interfaces, built with React, Material UI, and TypeScript
21 lines (20 loc) • 729 B
JavaScript
import * as React from 'react';
import { styled } from '@mui/material/styles';
import Skeleton from '@mui/material/Skeleton';
import Box from '@mui/material/Box';
import { materialTheme } from '../../utils/materialDesign/materialTheme';
const ListItemSkeletonStyled = styled(Skeleton)(() => ({
...materialTheme.body.large,
}));
const BoxStyled = styled(Box)(({ theme }) => ({
padding: theme.spacing(1, 1.5),
boxSizing: 'border-box',
height: 56,
display: 'flex',
alignItems: 'center',
}));
const MdListItemSkeleton = (props) => {
return (React.createElement(BoxStyled, null,
React.createElement(ListItemSkeletonStyled, { ...props })));
};
export default MdListItemSkeleton;