import { cn } from "@app/core/utils/cn.ts"; import { AlignLeftIcon, type LucideIcon } from "lucide-react"; import Footer from "./UI/Footer"; import { Spinner } from "./UI/Spinner"; export interface PageLayoutProps { label: string; noPadding?: boolean; children: React.ReactNode; actions?: { icon: LucideIcon; iconClasses?: string; onClick: () => void; disabled?: boolean; isLoading?: boolean; }[]; } export const PageLayout = ({ label, noPadding, actions, children, }: PageLayoutProps) => { return ( <>
{label}
{actions?.map((action) => ( ))}
{children}
); };