feat: text prop

This commit is contained in:
karishmas6
2024-10-19 20:58:30 +05:30
parent 2af113fd29
commit b69a5b4e8c

View File

@@ -1,12 +1,16 @@
import styled from "styled-components";
import { Stack } from "@mui/material";
export const Loader = () => {
interface LoaderProps {
text: string
}
export const Loader: React.FC<LoaderProps> = ({ text }) => {
return (
<Stack direction="column" sx={{ margin: "30px 0px 291px 0px" }}>
<StyledLoader />
<StyledParagraph>
Loading...
{text}
</StyledParagraph>
</Stack>
);