"use client"; import React, { useContext, createContext } from "react"; import { VerticalPadding, VerticalPaddingOptions } from "../VerticalPadding"; import classes from "./index.module.scss"; type BackgroundColorField = "white" | "black"; export const BackgroundColorContext = createContext("white"); export const useBackgroundColor = (): BackgroundColorField => useContext(BackgroundColorContext); type Props = { color?: BackgroundColorField; paddingTop?: VerticalPaddingOptions; paddingBottom?: VerticalPaddingOptions; className?: string; children?: React.ReactNode; id?: string; }; export const BackgroundColor: React.FC = (props) => { const { id, className, children, paddingTop, paddingBottom, color = "white", } = props; return (
{children}
); };