import React from "react"; import { ArrowLeft, Info } from "lucide-react"; import { Button } from "../../ui/button"; export const ELEMENT_LIBRARY_INSTRUCTION_SECTIONS = [ { title: "Entered on This Template", body: "When you add these items to your template, the text will be the same on all labels that use this template.", }, { title: "Entered on Each Label", body: "When you add these items to your template, the text will be different on each of the labels that use this template. For example, if you use Label Name as one of your items, one label may have the text 'Chicken' and another 'Pork.'", }, { title: "Automatic", body: "When you add these items to your template, the printed text will be automatically changed according to various factors (location, employee, date, time, product, etc.).", }, { title: "Entered When Printing Label", body: "The person printing the label will use these items to add information to the label at the time of printing.", }, ] as const; export const ELEMENT_LIBRARY_INSTRUCTION_INTRO = "Click on an item above to add it to your template. Once an item has been placed into your template, there may be additional options for you to select."; interface ElementsPanelInstructionPageProps { onClose: () => void; } /** 元素库说明:独立全屏页,由左侧 Instruction 链接进入 */ export function ElementsPanelInstructionPage({ onClose }: ElementsPanelInstructionPageProps) { return (
{ELEMENT_LIBRARY_INSTRUCTION_INTRO}
{ELEMENT_LIBRARY_INSTRUCTION_SECTIONS.map((section) => ({section.title}
{section.body}