import React from "react"; import { Box, Button } from "@material-ui/core"; import { useSnackbarController, useAuthContext, useSideEntityController, buildSchema } from "@camberi/firecms"; export function ExampleAdditionalView() { const snackbarController = useSnackbarController(); const sideEntityController = useSideEntityController(); const authContext = useAuthContext(); const customProductSchema = buildSchema({ name: "Product", properties: { name: { title: "Name", validation: { required: true }, dataType: "string" }, } }); return (
This is an example of an additional view
{authContext.loggedUser ?
Logged in as {authContext.loggedUser.displayName}
:
You are not logged in
}
); }