import type { Styles } from "react-jss";
import { createUseStyles as ogCreateUseStyles } from "react-jss";

import type commonTheme from "./index";

const createUseStyles = <Props>(
  styles:
    | Styles<string | number, Props, typeof commonTheme>
    | ((
        theme: typeof commonTheme,
      ) => Styles<string | number, Props, undefined>),
) => {
  return ogCreateUseStyles(styles);
};

export default createUseStyles;
