1 import type { HTMLProps, ReactNode } from 'react';
3 export interface Props extends Omit<HTMLProps<HTMLDivElement>, 'title'> {
4 description?: ReactNode;
10 const OnboardingContent = ({ description, img, children, title, ...rest }: Props) => {
13 {img && <div className="pb-4 text-center m-auto w-full">{img}</div>}
14 {title && <h1 className="mb-2 text-2xl text-bold text-center">{title}</h1>}
15 {description && <div className="text-center color-weak mb-6">{description}</div>}
16 {children && <div className="mb-4">{children}</div>}
21 export default OnboardingContent;