import type { PropsWithChildren } from 'react'; import ReactMarkdown from 'react-markdown'; import { APISectionPlatformTags } from '~/components/plugins/api/APISectionPlatformTags'; import { mdComponents } from '~/components/plugins/api/APISectionUtils'; import { Cell, HeaderCell, Row, Table, TableHead } from '~/ui/components/Table'; import { P, CODE, H3 } from '~/ui/components/Text'; type Props = PropsWithChildren<{ properties: PluginProperty[]; }>; export const ConfigPluginProperties = ({ children, properties }: Props) => ( <>

Configurable properties

{!!children &&

{children}

} Name Default Description {properties.map(property => ( {property.name} {!property.default ? '-' : {property.default}} {!!property.platform && ( )} {property.description} ))}
); export type PluginProperty = { name: string; description: string; default?: string; platform?: 'android' | 'ios' | 'web'; };