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>
}