You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: profile.rs
    path of file: ./repos/bionic-gpt/crates/ui-pages
    
    the code of the file until where you have to start completion: #![allow(non_snake_case)]
use crate::app_layout::{Layout, SideBar};
use assets::files::avatar_svg;
use daisy_rsx::*;
use db::authz::Rbac;
use db::queries::users::User;
use dioxus::prelude::*;

#[inline_props]
fn Page
    
pub fn profile(user: User, team_id: i32, rbac: Rbac) -> String {
    let (mut first_name, mut last_name) = ("".to_string(), "".to_string());
    if let (Some(first), Some(last)) = (user.first_name, user.last_name) {
        first_name = first;
        last_name = last;
    }

    let users_name_or_email = if !first_name.is_empty() {
        format!("{} {}", first_name, last_name)
    } else {
        user.email
    };

    let form_action = crate::routes::profile::set_details_route(team_id);

    crate::render(VirtualDom::new_with_props(
        Page,
        PageProps {
            team_id,
            rbac,
            first_name,
            last_name,
            users_name_or_email,
            form_action,
        },
    ))
}