feat(m0001): reuse expandable category UI for xi-cleft with yin_yang badge and full point headings #144

Open
shivani wants to merge 10 commits from feat/xi-cleft-and-point-category-ui into main
1 changed files with 11 additions and 6 deletions
Showing only changes of commit a1383ce840 - Show all commits

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 FrontMuDetailRenderer({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="Front-Mu Points" value={data.front_mu_points}/><Strings title="Description" value={data.description}/><ObjectCard title="Clinical Application" value={data.clinical_application}/><ContentLinkAttributeSections data={data} definitions={definitions} presentationAttributes={presentationAttributes}/></ScrollView>; }
import { YuanSourceDetailRenderer } from "./YuanSourceDetailRenderer";
/** Renders Front-Mu category details using the shared Overview and expandable Points accordion layout. */
export function FrontMuDetailRenderer(props: DetailRendererProps) {
return (
<YuanSourceDetailRenderer
{...props}
fallbackTitle="Front-Mu Points"
/>
);
}