12 lines
409 B
TypeScript
12 lines
409 B
TypeScript
import { useTheme } from "@/theme/ThemeContext";
|
|
import { CSSProperties, ReactNode } from "react"
|
|
|
|
export type HeaderProps = {
|
|
children?: ReactNode;
|
|
style?: CSSProperties;
|
|
};
|
|
export const Header = ({ children, style }: HeaderProps) => {
|
|
const { convertStyle } = useTheme();
|
|
const themedStyle = style ? convertStyle(style) : undefined;
|
|
return <thead style={themedStyle}>{children}</thead>
|
|
} |