diff --git a/config/chakra/util/variant.ts b/config/chakra/util/variant.ts deleted file mode 100644 index 37845f78..00000000 --- a/config/chakra/util/variant.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { StyleFunctionProps } from '@chakra-ui/react' -import { mergeDeepRight } from 'rambda' - -export function extendVariant(variant: any, extend: any) { - return (props: StyleFunctionProps) => { - return mergeDeepRight( - typeof variant === 'function' ? variant(props) : variant, - typeof extend === 'function' ? extend(props) : extend, - ) - } -}