import React , { PropsWithChildren , ReactElement } from 'react' ; import '@discord-message-components/core/dist/styles/discord-embed-field.css' ; export type DiscordEmbedFieldProps = PropsWithChildren < { inline ? : boolean ; fieldTitle : string ; } > ; export default function DiscordEmbedField ( { children , inline , fieldTitle } ) { let classes = 'discord-embed-field' ; if ( inline ) classes += ' discord-embed-field-inline' ; return ( < div className = { classes } > < div className = "discord-embed-field-title" > { fieldTitle } < /div> { children } < /div>); }