import React from 'react' import clsx from 'clsx' import styles from './DosAndDonts.module.css' type DoDontContainerProps = { stacked?: boolean } export function DoDontContainer({stacked = false, children}: React.PropsWithChildren) { return
{children}
} type DoDontProps = { indented?: boolean } export function Do({children, ...rest}: React.PropsWithChildren) { return ( {children} ) } export function Dont({children, ...rest}: React.PropsWithChildren) { return ( {children} ) } type DoDontBaseProps = { title: string className?: string indented?: boolean } export function DoDontBase({children, title, indented, className, ...rest}: React.PropsWithChildren) { return (
{title}
{indented ?
{children}
: children}
) }