From b69a5b4e8c4ec53a3fefaac525fc96a966d6103d Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 19 Oct 2024 20:58:30 +0530 Subject: [PATCH] feat: text prop --- src/components/atoms/Loader.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/atoms/Loader.tsx b/src/components/atoms/Loader.tsx index 6baea8ec..47996b25 100644 --- a/src/components/atoms/Loader.tsx +++ b/src/components/atoms/Loader.tsx @@ -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 = ({ text }) => { return ( - Loading... + {text} );