import { useState } from "react"; import { Flex, Text } from "@seed-design/react"; import type { StaticActivityComponentType } from "@stackflow/react/future"; import { AppBar, AppBarLeft, AppBarMain, AppBarRight, AppBarTextButton, } from "seed-design/ui/app-bar"; import { AppScreen, AppScreenContent } from "seed-design/ui/app-screen"; declare module "@stackflow/config" { interface Register { ActivityAppBarTextButton: {}; } } const ActivityAppBarTextButton: StaticActivityComponentType<"ActivityAppBarTextButton"> = () => { const [lastAction, setLastAction] = useState("없음"); return ( setLastAction("취소")}>취소 setLastAction("완료")}>완료 마지막 액션: {lastAction} ); }; export default ActivityAppBarTextButton;