analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
58 lines (56 loc) • 2.08 kB
JavaScript
import {
Text_default
} from "./chunk-IMCIR6TJ.mjs";
// src/components/shared/ModalComponents.tsx
import { UserIcon, XCircleIcon } from "@phosphor-icons/react";
import { jsx, jsxs } from "react/jsx-runtime";
var SectionTitle = ({ children }) => /* @__PURE__ */ jsx(
Text_default,
{
as: "h3",
size: "md",
weight: "bold",
className: "text-text-950 tracking-[0.2px]",
children
}
);
var UserHeader = ({
name,
school,
className,
year,
statusBadge
}) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 pb-4 border-b border-border-50", children: [
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
/* @__PURE__ */ jsx(
Text_default,
{
as: "span",
className: "size-8 rounded-full bg-background-100 flex items-center justify-center shrink-0",
children: /* @__PURE__ */ jsx(UserIcon, { size: 18, className: "text-text-500", weight: "fill" })
}
),
/* @__PURE__ */ jsx(Text_default, { size: "md", weight: "medium", className: "text-text-950", children: name })
] }),
statusBadge
] }),
/* @__PURE__ */ jsx(Text_default, { size: "xs", className: "text-text-600", children: [school, className, year].filter((part) => part !== void 0 && part !== null && part !== "").join(" \u2022 ") })
] });
var ErrorContent = ({ message }) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center py-10 gap-3", children: [
/* @__PURE__ */ jsx(
Text_default,
{
as: "span",
className: "size-10 rounded-full bg-error-100 flex items-center justify-center",
children: /* @__PURE__ */ jsx(XCircleIcon, { size: 20, className: "text-error-700", weight: "fill" })
}
),
/* @__PURE__ */ jsx(Text_default, { size: "sm", className: "text-error-700 text-center", children: message })
] });
export {
SectionTitle,
UserHeader,
ErrorContent
};
//# sourceMappingURL=chunk-PEMHCXLY.mjs.map