1
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
Gamepad2,
|
||||
GitFork,
|
||||
Heart,
|
||||
PencilLine,
|
||||
Play,
|
||||
Share2,
|
||||
} from 'lucide-react';
|
||||
@@ -38,6 +39,7 @@ export interface PlatformWorkDetailViewProps {
|
||||
onLike: () => void;
|
||||
onStart: () => void;
|
||||
onRemix: () => void;
|
||||
actionMode?: 'remix' | 'edit';
|
||||
}
|
||||
|
||||
function formatCompactCount(value: number) {
|
||||
@@ -78,6 +80,7 @@ export function PlatformWorkDetailView({
|
||||
onLike,
|
||||
onStart,
|
||||
onRemix,
|
||||
actionMode = 'remix',
|
||||
}: PlatformWorkDetailViewProps) {
|
||||
const coverSlides = useMemo(
|
||||
() => resolvePlatformWorldCoverSlides(entry),
|
||||
@@ -111,6 +114,8 @@ export function PlatformWorkDetailView({
|
||||
[entry],
|
||||
);
|
||||
const stats = resolvePlatformWorldStats(entry);
|
||||
const workActionLabel = actionMode === 'edit' ? '作品编辑' : '作品改造';
|
||||
const WorkActionIcon = actionMode === 'edit' ? PencilLine : GitFork;
|
||||
const statItems = [
|
||||
{
|
||||
label: '游玩',
|
||||
@@ -425,8 +430,8 @@ export function PlatformWorkDetailView({
|
||||
onClick={onRemix}
|
||||
disabled={isBusy}
|
||||
>
|
||||
<GitFork className="h-5 w-5" />
|
||||
作品改造
|
||||
<WorkActionIcon className="h-5 w-5" />
|
||||
{workActionLabel}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user