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