Skip to content

Commit

Permalink
Created new Exception component
Browse files Browse the repository at this point in the history
  • Loading branch information
this-Aditya committed Aug 26, 2024
1 parent 5f85e34 commit 74cb53e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/ui/FormattedExcpetion.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {CardTitle, MarginCard} from "../styled";
import {FC, PropsWithChildren} from "react";

type FormattedExceptionProps = PropsWithChildren<{tileText: string}>

const FormattedException: FC<FormattedExceptionProps> = ({tileText, children}) => {
return (
<>
<MarginCard>
<CardTitle>{tileText}</CardTitle>
{children}
</MarginCard>
</>
)
}

export default FormattedException;

0 comments on commit 74cb53e

Please sign in to comment.