-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,36 @@ | ||
import { ReactNode } from 'react' | ||
import ActionSheetRoot from './root' | ||
import ActionSheetHeader from './header' | ||
import ActionSheetContent from './content' | ||
import ActionSheetFooter from './footer' | ||
import ActionSheetHandleBar from './handle-bar' | ||
import ActionSheetTrigger from './trigger' | ||
import ActionSheetPortal from './portal' | ||
import ActionSheetClose from './close' | ||
import { ReactNode } from "react"; | ||
import ActionSheetRoot from "./root"; | ||
import ActionSheetHeader from "./header"; | ||
import ActionSheetContent from "./content"; | ||
import ActionSheetFooter from "./footer"; | ||
import ActionSheetHandleBar from "./handle-bar"; | ||
import ActionSheetTrigger from "./trigger"; | ||
import ActionSheetPortal from "./portal"; | ||
|
||
type ActionSheetType = { | ||
Root: typeof ActionSheetRoot | ||
Header: typeof ActionSheetHeader | ||
Content: typeof ActionSheetContent | ||
Footer: typeof ActionSheetFooter | ||
HandleBar: typeof ActionSheetHandleBar | ||
Trigger: typeof ActionSheetTrigger | ||
Portal: typeof ActionSheetPortal | ||
Close: typeof ActionSheetClose | ||
} | ||
Root: typeof ActionSheetRoot; | ||
Header: typeof ActionSheetHeader; | ||
Content: typeof ActionSheetContent; | ||
Footer: typeof ActionSheetFooter; | ||
HandleBar: typeof ActionSheetHandleBar; | ||
Trigger: typeof ActionSheetTrigger; | ||
Portal: typeof ActionSheetPortal; | ||
}; | ||
|
||
export const ActionSheet: ActionSheetType = ({ | ||
children, | ||
children, | ||
}: { | ||
children: ReactNode | ||
children: ReactNode; | ||
}) => { | ||
return <>{children}</> | ||
} | ||
return <>{children}</>; | ||
}; | ||
|
||
ActionSheet.Root = ActionSheetRoot | ||
ActionSheet.Header = ActionSheetHeader | ||
ActionSheet.Content = ActionSheetContent | ||
ActionSheet.Footer = ActionSheetFooter | ||
ActionSheet.HandleBar = ActionSheetHandleBar | ||
ActionSheet.Trigger = ActionSheetTrigger | ||
ActionSheet.Portal = ActionSheetPortal | ||
ActionSheet.Close = ActionSheetClose | ||
ActionSheet.Root = ActionSheetRoot; | ||
ActionSheet.Header = ActionSheetHeader; | ||
ActionSheet.Content = ActionSheetContent; | ||
ActionSheet.Footer = ActionSheetFooter; | ||
ActionSheet.HandleBar = ActionSheetHandleBar; | ||
ActionSheet.Trigger = ActionSheetTrigger; | ||
ActionSheet.Portal = ActionSheetPortal; | ||
|
||
export default ActionSheet | ||
export default ActionSheet; |