Skip to content

Commit

Permalink
feat(sanity): implement Layout from components.studio in Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanwikner authored and rexxars committed Sep 23, 2022
1 parent 8aa9393 commit 9a75c81
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/sanity/src/studio/Studio.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import React from 'react'
import {StudioProvider, StudioProviderProps} from './StudioProvider'
import {StudioLayout} from './StudioLayout'
import {useWorkspace} from './workspace'

export type StudioProps = Omit<StudioProviderProps, 'children'>

function StudioLayout() {
const {Layout} = useWorkspace().studio.components

return <Layout />
}

export function Studio(props: StudioProps) {
return (
<StudioProvider {...props}>
Expand Down

0 comments on commit 9a75c81

Please sign in to comment.