import { useState } from "react" import type { Meta, StoryObj } from "@storybook/react-vite" import { Button, LoadingScreen } from "@hm-design/ui" import { StateBoard } from "@/components/story-board" import { STORY_KICKER, StoryPage, StoryPageHeader, StorySection } from "@/components/story-page" // Loading Screen is a Dashboard-local pattern (ui-viz LoadingScreen). Inline fills its parent; fullscreen covers the viewport. The // fullscreen demo is mounted and removed by local state only; there is no async task, cancel or close control in the pattern. function Fullscreen() { const [open, setOpen] = useState(false) return ( <> {open ? ( <> 데이터를 불러오는 중 ) : null} ) } const meta = { title: "Patterns/Layout/Loading Screen", parameters: { layout: "padded", controls: { disable: true } } } satisfies Meta export default meta type Story = StoryObj // The inline specimen fills its parent inside the common page Inner. export const All: Story = { name: "Loading Screen", parameters: { layout: "fullscreen" }, render: () => ( 데이터를 불러오는 중 }, { id: "narrow", label: "Narrow parent (240px)", children:
}, ]} />
), } export const Inline: Story = { tags: ["verification"], render: () => }