24 lines
618 B
TypeScript
24 lines
618 B
TypeScript
import React, { FC } from "react";
|
|
import { Text, Box, Spinner, HStack } from "@chakra-ui/react";
|
|
|
|
import { Notification } from "modules/common";
|
|
|
|
type Props = {
|
|
items: Notification[];
|
|
};
|
|
|
|
const PendingNotifications: FC<Props> = ({ items = [] }) => {
|
|
return (
|
|
<Box color="white" bg="#333D5F" py="2" px="4" borderRadius="full">
|
|
<HStack>
|
|
<Spinner size="xs" />
|
|
<Text fontWeight="bold" fontSize="sm" px="12" whiteSpace="nowrap">
|
|
{items.length} Pending Transaction{items.length > 1 ?? "s"} ...
|
|
</Text>
|
|
</HStack>
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default PendingNotifications;
|