//! jpl-website shared components and utilities use leptos::prelude::*; /// Shared component that works on both server and client #[component] pub fn SharedComponent() -> impl IntoView { view! {
} } /// Shared data structures for CMS #[derive(Clone, Debug)] pub struct CmsPage { pub id: String, pub title: String, pub content: String, pub slug: String, } /// Server-only code #[cfg(feature = "ssr")] pub mod server { //! Server-only code for jpl-website } /// Client-only code #[cfg(not(feature = "ssr"))] pub mod client { //! Client-only code for jpl-website }