-
- {children}
-
+
)
}
@@ -108,16 +98,9 @@ type BlankslatePrimaryActionProps =
}>
function PrimaryAction({children, href, ...props}: BlankslatePrimaryActionProps) {
- const {size} = useBlankslate()
return (
-
diff --git a/packages/react/src/Blankslate/BlankslateContext.ts b/packages/react/src/Blankslate/BlankslateContext.ts
deleted file mode 100644
index 59bed1202bc..00000000000
--- a/packages/react/src/Blankslate/BlankslateContext.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import {createContext, useContext} from 'react'
-
-type BlankslateContextType = {
- size: 'small' | 'medium' | 'large'
-}
-
-const BlankslateContext = createContext
(null)
-
-function useBlankslate(): BlankslateContextType {
- const context = useContext(BlankslateContext)
- if (!context) {
- throw new Error('useBlankslate must be used within a BlankslateProvider')
- }
- return context
-}
-
-const Provider = BlankslateContext.Provider
-
-export {Provider, useBlankslate}