// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; /** * @input Separate controlled states for modal and non-modal drawers * @output A comparison of hasScrim's two presentations * @position Copyable Drawer example */ import {useState} from 'react'; import {Drawer, DrawerHeader} from '@astryxdesign/core/Drawer'; import {Button} from '@astryxdesign/core/Button'; import {Layout, LayoutContent} from '@astryxdesign/core/Layout'; import {HStack} from '@astryxdesign/core/Stack'; import {Text} from '@astryxdesign/core/Text'; export default function DrawerScrim() { const [openModal, setOpenModal] = useState(false); const [openPanel, setOpenPanel] = useState(false); return ( <>