Files
epusdt/src/www/assets/page-header-p3wI3cFk.js
T
2026-06-03 20:58:57 +08:00

1 line
988 B
JavaScript

import{pp as e}from"./messages-DejrfFke.js";import{t}from"./separator-Coj2tE7_.js";var n=e();function r({title:e,description:r,actions:i,children:a,variant:o=`page`}){return o===`section`?(0,n.jsxs)(`div`,{className:`flex flex-1 flex-col`,children:[(0,n.jsxs)(`div`,{className:`flex-none`,children:[(0,n.jsx)(`h3`,{className:`font-medium text-lg`,children:e}),r&&(0,n.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:r})]}),(0,n.jsx)(t,{className:`my-4 flex-none`}),(0,n.jsx)(`div`,{className:`faded-bottom h-full w-full overflow-y-auto scroll-smooth pe-4 pb-12`,children:(0,n.jsx)(`div`,{className:`-mx-1 px-1.5 lg:max-w-xl`,children:a})})]}):(0,n.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-2`,children:[(0,n.jsxs)(`div`,{children:[(0,n.jsx)(`h2`,{className:`font-bold text-2xl tracking-tight`,children:e}),r&&(0,n.jsx)(`p`,{className:`text-muted-foreground`,children:r})]}),i&&(0,n.jsx)(`div`,{className:`flex gap-2`,children:i})]})}export{r as t};