Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 21x 10x | import { Text } from "@common/Text";
import { Stack } from "@mui/material";
import { ReactNode } from "react";
type Props = {
icon: ReactNode;
message: string;
isThread?: boolean;
};
const ConversationsEmptyState = ({ icon, message, isThread }: Props) => {
return (
<Stack
justifyContent="center"
alignItems="center"
sx={{ height: isThread ? "calc(100% - 32px)" : "100%" }}
>
{icon}
<Text color="#8F8F8F">{message}</Text>
</Stack>
);
};
export default ConversationsEmptyState;
|