import React, { ReactNode } from 'react'; import { Box, Text } from 'folds'; import { BreakWord } from '../../styles/Text.css'; type SettingTileProps = { title?: ReactNode; description?: ReactNode; before?: ReactNode; after?: ReactNode; children?: ReactNode; }; export function SettingTile({ title, description, before, after, children }: SettingTileProps) { return ( {before && {before}} {title && ( {title} )} {description && ( {description} )} {children} {after && {after}} ); }