@revenuecat/purchases-ui-js
Version:
Web components for Paywalls. Powered by RevenueCat
16 lines (15 loc) • 459 B
JavaScript
import WithLayout from "./with-layout.svelte";
export function withLayout(Story, context) {
return {
Component: WithLayout,
props: {
// @ts-expect-error too hard to get the type right
globals: context.globals,
children: () => ({
Component: Story,
// @ts-expect-error too hard to get the type right
props: context.args,
}),
},
};
}