1 line
1.5 KiB
JavaScript
1 line
1.5 KiB
JavaScript
import{j as e,n as t,r as n}from"./button-BhAQo6Sy.js";import{V as r}from"./api-Bb85n68L.js";import{t as i}from"./arrow-left-CQp0ScTZ.js";var a=n();function o({title:n,description:o,eyebrow:s,backTo:c,actions:l}){return(0,a.jsxs)(`header`,{className:`relative overflow-hidden rounded-2xl border bg-card shadow-xs`,children:[(0,a.jsx)(`div`,{className:`pointer-events-none absolute -right-20 -top-32 size-72 rounded-full bg-primary/6 blur-3xl`,"aria-hidden":`true`}),(0,a.jsxs)(`div`,{className:`relative flex flex-col gap-5 p-5 sm:p-6 lg:flex-row lg:items-center lg:justify-between`,children:[(0,a.jsxs)(`div`,{className:`flex min-w-0 items-start gap-3.5`,children:[c&&(0,a.jsx)(r,{to:c,"aria-label":wp.i18n.__(`Go back`,`jooosi-fon`),className:e(t({variant:`ghost`,size:`icon`}),`mt-0.5 shrink-0 border bg-background shadow-xs`),children:(0,a.jsx)(i,{"aria-hidden":`true`})}),(0,a.jsxs)(`div`,{className:`min-w-0`,children:[s&&(0,a.jsxs)(`p`,{className:`mb-2 flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.14em] text-primary`,children:[(0,a.jsx)(`span`,{className:`size-1.5 rounded-full bg-primary`,"aria-hidden":`true`}),s]}),(0,a.jsx)(`h1`,{className:`m-0 text-2xl font-semibold tracking-[-0.025em] text-foreground sm:text-[2rem] sm:leading-tight`,children:n}),(0,a.jsx)(`p`,{className:`mb-0 mt-2 max-w-3xl text-sm leading-6 text-muted-foreground`,children:o})]})]}),l&&(0,a.jsx)(`div`,{className:`flex shrink-0 flex-wrap gap-2 lg:justify-end`,children:l})]})]})}export{o as t}; |