feat: text prop
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user