mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-14 11:48:16 -05:00
24 lines
476 B
TypeScript
24 lines
476 B
TypeScript
import { ReactNode } from "react";
|
|
|
|
import { Box, Heading, Text } from "@chakra-ui/react";
|
|
|
|
interface EmptyListProps {
|
|
title: string;
|
|
summary: string;
|
|
createButton?: ReactNode;
|
|
}
|
|
|
|
function EmptyList({ title, summary, createButton }: EmptyListProps) {
|
|
return (
|
|
<Box textAlign="center" py={10} px={6}>
|
|
<Heading as="h4" size="md" mt={6} mb={2}>
|
|
{title}
|
|
</Heading>
|
|
<Text color="gray.500">{summary}</Text>
|
|
{createButton}
|
|
</Box>
|
|
);
|
|
}
|
|
|
|
export { EmptyList };
|