feat(frame): move the watermark controls into a FRAME sub-panel
This commit is contained in:
@@ -2,14 +2,11 @@ import React from 'react';
|
||||
import { View, Text, TouchableOpacity, ScrollView } from 'react-native';
|
||||
import * as Haptics from 'expo-haptics';
|
||||
|
||||
export type TabId = 'recipes' | 'favorites' | 'iq' | 'wb' | 'filters' | 'frame' | 'watermark';
|
||||
export type TabId = 'recipes' | 'favorites' | 'iq' | 'wb' | 'filters' | 'frame';
|
||||
|
||||
interface ToolRailProps {
|
||||
activeTab: TabId | null;
|
||||
onToggle: (tab: TabId) => void;
|
||||
// FRAME only exists in library mode (camera shows every frame WYSIWYG through
|
||||
// the viewfinder overlays); WATERMARK is available in both modes.
|
||||
mode: 'camera' | 'library';
|
||||
}
|
||||
|
||||
const TOOLS: { id: TabId; label: string }[] = [
|
||||
@@ -19,12 +16,12 @@ const TOOLS: { id: TabId; label: string }[] = [
|
||||
{ id: 'wb', label: 'WB' },
|
||||
{ id: 'filters', label: 'FX' },
|
||||
{ id: 'frame', label: 'FRAME' },
|
||||
{ id: 'watermark', label: 'WATERMARK' },
|
||||
];
|
||||
|
||||
export default function ToolRail({ activeTab, onToggle, mode }: ToolRailProps) {
|
||||
// FRAME (frame picker) belongs to library stills only: camera mode hides it.
|
||||
const tools = TOOLS.filter((t) => t.id !== 'frame' || mode === 'library');
|
||||
export default function ToolRail({ activeTab, onToggle }: ToolRailProps) {
|
||||
// FRAME is on in BOTH modes: the camera composes through the frame's window
|
||||
// WYSIWYG (and WATERMARK now lives inside this tab).
|
||||
const tools = TOOLS;
|
||||
return (
|
||||
<View className="py-1.5">
|
||||
<ScrollView
|
||||
|
||||
Reference in New Issue
Block a user