import {getItemInNestedObject} from "./firebase/util"; export const getTip = (path: string[]) => { const tips = { institutes: { Students: { submissionSoon: { title: "", description: "", }, submissionNow: { title: "", description: "", }, submissionClosed: { title: "", description: "", }, }, Staff: { addUsers: { title: "Adding users", description: "You can add staff and students to your account in the 'Users' page. Upload a CSV file or add individual users through with form.", buttonTitle: "Users", buttonURL: "/institutes/users", }, userGroups: { title: "Set up user groups", description: "Students must have a user group with a workflow before they are activated. Customise your user group on the 'Users' page.", buttonTitle: "Users", buttonURL: "/institutes/users", }, activateStudents: { title: "Activate students", description: "Activate your students from the 'Users' page to allow them to use the platform. Click the tick icon on the user table.", buttonTitle: "Users", buttonURL: "/institutes/users", }, activateStaff: { title: "Activate staff", description: "Activate staff on the 'Users' page. Assign staff roles to filter their students. Do this from the staff user profile and customise visibility in their user group.", buttonTitle: "Users", buttonURL: "/institutes/users", }, addPlacements: { title: "Add placements", description: "Students can now create placements within the submission period you defined in their user group. You can also manually create placements on the Placements page.", buttonTitle: "Placements", buttonURL: "/institutes/placements", }, }, }, }; console.log("tips", tips); return getItemInNestedObject(path, tips); };