import * as React from 'react'; import { RenderProps } from 'src/types/op-table'; import { TagProps } from 'src/types/op-tag'; import Tag from 'src/view/op-tag'; export default function Name(props: RenderProps) { const { value = '', record } = props; const { tagList = [], snList = [] } = record; return ( <>
{value}
{tagList?.length ? (
{tagList.map((tag: TagProps) => ( ))}
) : null} {snList && snList.length ? (
sn: {snList?.toString()}
) : null} ); }