import { pattern, type PerSession, type PerUser } from "commonfabric"; type ChildInput = { label: string; }; type ChildOutput = { label: string; }; const Child = pattern(({ label }) => ({ label })); export default pattern(({ label }) => { const userChild: PerUser = Child({ label }); const sessionChild: PerSession = Child({ label }); const plainChild: ChildOutput = Child({ label }); return { userChild, sessionChild, plainChild, }; });