From 0fe07b16cefa5e2264b5b1b5ddafc99d1795540d Mon Sep 17 00:00:00 2001 From: chdeskur Date: Fri, 4 Oct 2024 10:23:46 -0400 Subject: [PATCH] spread --- .../src/mdx/components/callout/Callout.tsx | 49 ++++++------------- 1 file changed, 16 insertions(+), 33 deletions(-) diff --git a/packages/ui/app/src/mdx/components/callout/Callout.tsx b/packages/ui/app/src/mdx/components/callout/Callout.tsx index 0656e07d81..9aca15a1d3 100644 --- a/packages/ui/app/src/mdx/components/callout/Callout.tsx +++ b/packages/ui/app/src/mdx/components/callout/Callout.tsx @@ -101,53 +101,41 @@ export const Callout: FC> = ({ intent: intentRa // aliases -export function InfoCallout({ children, title, icon }: PropsWithChildren>): ReactElement { +export function InfoCallout({ children, ...props }: PropsWithChildren>): ReactElement { return ( - + {children} ); } -export function WarningCallout({ - children, - title, - icon, -}: PropsWithChildren>): ReactElement { +export function WarningCallout({ children, ...props }: PropsWithChildren>): ReactElement { return ( - + {children} ); } -export function SuccessCallout({ - children, - title, - icon, -}: PropsWithChildren>): ReactElement { +export function SuccessCallout({ children, ...props }: PropsWithChildren>): ReactElement { return ( - + {children} ); } -export function ErrorCallout({ - children, - title, - icon, -}: PropsWithChildren>): ReactElement { +export function ErrorCallout({ children, ...props }: PropsWithChildren>): ReactElement { return ( - + {children} ); } -export function NoteCallout({ children, title, icon }: PropsWithChildren>): ReactElement { +export function NoteCallout({ children, ...props }: PropsWithChildren>): ReactElement { return ( - + {children} ); @@ -155,31 +143,26 @@ export function NoteCallout({ children, title, icon }: PropsWithChildren>): ReactElement { return ( - + {children} ); } -export function TipCallout({ children, title, icon }: PropsWithChildren>): ReactElement { +export function TipCallout({ children, ...props }: PropsWithChildren>): ReactElement { return ( - + {children} ); } -export function CheckCallout({ - children, - title, - icon, -}: PropsWithChildren>): ReactElement { +export function CheckCallout({ children, ...props }: PropsWithChildren>): ReactElement { return ( - + {children} );