chore: generate
This commit is contained in:
@@ -9,7 +9,9 @@ const context = createContext<{
|
|||||||
|
|
||||||
export function PathFormatterProvider(props: ParentProps<{ path: string | undefined }>) {
|
export function PathFormatterProvider(props: ParentProps<{ path: string | undefined }>) {
|
||||||
return (
|
return (
|
||||||
<context.Provider value={{ path: () => props.path || process.cwd(), format: (input) => formatPath(input, props.path) }}>
|
<context.Provider
|
||||||
|
value={{ path: () => props.path || process.cwd(), format: (input) => formatPath(input, props.path) }}
|
||||||
|
>
|
||||||
{props.children}
|
{props.children}
|
||||||
</context.Provider>
|
</context.Provider>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user