import { CustomRenderProps } from '@protobuf-viz/react'; import { CustomType } from './CustomType.tsx'; import { NamedStruct } from './gen/substrait/type_pb.ts'; import { SubstraitVizTheme } from './theme.ts'; export function CustomNamedStruct({ msg, theme, ...props }: CustomRenderProps) { return (
{msg.names.map((name, i) => (
{name} [ {msg.struct?.types[i] && ( )} ]
))}
); }