welcome-page-content.tsx 1.0 KB

123456789101112131415161718192021222324252627282930
  1. import { useProjectListContext } from '@/features/project-list/context/project-list-context'
  2. import DashApiError from '@/features/project-list/components/dash-api-error'
  3. import OLRow from '@/features/ui/components/ol/ol-row'
  4. import OLCol from '@/features/ui/components/ol/ol-col'
  5. import UserNotifications from '@/features/project-list/components/notifications/user-notifications'
  6. import WelcomeMessage from '@/features/project-list/components/welcome-message'
  7. export default function WelcomePageContent() {
  8. const { error } = useProjectListContext()
  9. return (
  10. <div className="project-list-welcome-wrapper">
  11. {error ? <DashApiError /> : ''}
  12. <OLRow className="row-spaced mx-0">
  13. <OLCol
  14. md={{ span: 10, offset: 1 }}
  15. lg={{ span: 8, offset: 2 }}
  16. className="project-list-empty-col"
  17. >
  18. <OLRow>
  19. <OLCol>
  20. <UserNotifications />
  21. </OLCol>
  22. </OLRow>
  23. <WelcomeMessage />
  24. </OLCol>
  25. </OLRow>
  26. </div>
  27. )
  28. }