Files
outline/app/editor/components/WithTheme.tsx
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

13 lines
323 B
TypeScript

import * as React from "react";
import type { DefaultTheme } from "styled-components";
import { useTheme } from "styled-components";
type Props = {
children: (theme: DefaultTheme) => React.ReactElement;
};
export default function WithTheme({ children }: Props) {
const theme = useTheme();
return children(theme);
}