project-edit-view.tsx 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * ProjectEditView Component
  3. *
  4. * Allows editing of existing projects.
  5. * Requirements: 1.6
  6. */
  7. import React from 'react';
  8. import { useParams, useNavigate } from 'react-router-dom';
  9. import { Button, IconArrowLeft } from '@humansignal/ui';
  10. export const ProjectEditView: React.FC = () => {
  11. const { id } = useParams<{ id: string }>();
  12. const navigate = useNavigate();
  13. return (
  14. <div className="flex flex-col gap-comfortable h-full">
  15. {/* Header */}
  16. <div className="flex items-center justify-between pb-comfortable border-b border-neutral-border">
  17. <div className="flex items-center gap-comfortable">
  18. <Button
  19. variant="neutral"
  20. look="string"
  21. size="small"
  22. onClick={() => navigate('/projects')}
  23. leading={<IconArrowLeft className="size-4" />}
  24. >
  25. 返回
  26. </Button>
  27. <div>
  28. <h1 className="text-heading-large font-bold text-primary-foreground">
  29. 编辑项目
  30. </h1>
  31. <p className="text-body-medium text-secondary-foreground mt-tighter">
  32. 项目 ID: {id}
  33. </p>
  34. </div>
  35. </div>
  36. </div>
  37. {/* Content */}
  38. <div className="flex-1 flex items-center justify-center">
  39. <div className="text-center">
  40. <h2 className="text-heading-medium font-semibold text-primary-foreground mb-tight">
  41. 项目编辑页面
  42. </h2>
  43. <p className="text-body-medium text-secondary-foreground">
  44. 此页面正在开发中...
  45. </p>
  46. </div>
  47. </div>
  48. </div>
  49. );
  50. };