Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@davoodmehraban89
/
medusa
Fork
0
medusa
/
packages
/
admin
/
dashboard
/
src
/
providers
/
sidebar-provider
/
sidebar-context.tsx
Code
Commits
Issues
Pulls
Cloud Agent
CICD
security/codeql-dependabot-gitleaks
automation/medusa-upstream-review
main
project/medusa-foundation-audit
security/codeql-dependabot-gitleaks
tsx
9 lines
233 Bytes
Copy permalink
Copy
Raw
1
import
{
createContext
}
from
"
react
"
2
3
type
SidebarContextValue
=
{
4
desktop
:
boolean
5
mobile
:
boolean
6
toggle
:
(
view
:
"
desktop
"
|
"
mobile
"
)
=>
void
7
}
8
9
export
const
SidebarContext
=
createContext
<
SidebarContextValue
|
null
>
(
null
)