feat(m0001): use shared accordion renderer for back-shu points

This commit is contained in:
ShivaniKhaire 2026-12-05 11:34:20 +05:30
parent db460fecca
commit ba7d730112
1 changed files with 11 additions and 6 deletions

View File

@ -1,8 +1,13 @@
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 BackShuDetailRenderer({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}/><ObjectArrayTable title="Back-Shu Points" value={data.points}/><ObjectCard title="Functions" value={data.functions}/><ObjectCard title="Clinical Application" value={data.clinical_application}/><ContentLinkAttributeSections data={data} definitions={definitions} presentationAttributes={presentationAttributes}/></ScrollView>; }
import { YuanSourceDetailRenderer } from "./YuanSourceDetailRenderer";
/** Renders Back-Shu category details using the shared Overview and expandable Points accordion layout. */
export function BackShuDetailRenderer(props: DetailRendererProps) {
return (
<YuanSourceDetailRenderer
{...props}
fallbackTitle="Back-Shu Points"
/>
);
}