acupedia-mobile-ui/src/features/content/renderers/details/FiveShuDetailRenderer.tsx

9 lines
1.7 KiB
TypeScript

import React from "react";
import { ScrollView } from "react-native";
import type { DetailRendererProps } from "../../types/renderer.types";
import { ContentLinkAttributeSections } from "../shared/ContentLinkAttributeSections";
import { asString } from "../helpers/value";
import { Hero } from "../shared/Hero";
import { DescriptionList, Images, ObjectArrayCards, ObjectArrayTable, ObjectCard, PointCodes, Strings } from "./categoryParts";
export function FiveShuDetailRenderer({content,data,definitions,presentationAttributes}:DetailRendererProps){ return <ScrollView contentContainerStyle={{paddingHorizontal:18,paddingTop:16,paddingBottom:40,gap:14}}><Hero title={asString(data.title)||asString(data.name)||content.title}/><Images data={data}/><PointCodes data={data}/><Strings title="Description" value={data.description}/><ObjectArrayTable title="Phases of Yin Channels" value={data.phases_of_yin_channels}/><ObjectArrayTable title="Points of Yin Channels" value={data.points_of_yin_channels}/><ObjectArrayTable title="Phases of Yang Channels" value={data.phases_of_yang_channels}/><ObjectArrayTable title="Points of Yang Channels" value={data.points_of_yang_channels}/><ObjectCard title="Clinical Application" value={data.clinical_application}/><ObjectCard title="Jing-Well Points" value={data.jing_well_points}/><ObjectCard title="Ying-Spring Points" value={data.ying_spring_points}/><ObjectCard title="Shu-Stream Points" value={data.shu_stream_points}/><ObjectCard title="Jing-River Points" value={data.jing_river_points}/><ObjectCard title="He-Sea Points" value={data.he_sea_points}/><ContentLinkAttributeSections data={data} definitions={definitions} presentationAttributes={presentationAttributes}/></ScrollView>; }