From 74cb53e030e1fa6906033e1e898c4ecf4f44b982 Mon Sep 17 00:00:00 2001 From: this-Aditya Date: Mon, 26 Aug 2024 14:33:31 +0530 Subject: [PATCH] Created new Exception component --- pkg/ui/FormattedExcpetion.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pkg/ui/FormattedExcpetion.tsx diff --git a/pkg/ui/FormattedExcpetion.tsx b/pkg/ui/FormattedExcpetion.tsx new file mode 100644 index 0000000..8f0f998 --- /dev/null +++ b/pkg/ui/FormattedExcpetion.tsx @@ -0,0 +1,17 @@ +import {CardTitle, MarginCard} from "../styled"; +import {FC, PropsWithChildren} from "react"; + +type FormattedExceptionProps = PropsWithChildren<{tileText: string}> + +const FormattedException: FC = ({tileText, children}) => { + return ( + <> + + {tileText} + {children} + + + ) +} + +export default FormattedException; \ No newline at end of file