function useAttachedStyle(cssSelector = "*", isNestedSelector = false, borderRadius = "md", direction = "row") {
    const borderStyle = "row" === direction || "row-reverse" === direction ? {
        first: {
            borderRadius,
            borderTopRightRadius: 0,
            borderBottomRightRadius: 0
        },
        center: {
            borderRadius: 0
        },
        last: {
            borderRadius,
            borderTopLeftRadius: 0,
            borderBottomLeftRadius: 0
        }
    } : {
        first: {
            borderRadius,
            borderBottomRightRadius: 0,
            borderBottomLeftRadius: 0
        },
        center: {
            borderRadius: 0
        },
        last: {
            borderRadius,
            borderTopRightRadius: 0,
            borderTopLeftRadius: 0
        }
    };
    return isNestedSelector ? {
        [cssSelector]: borderStyle.center,
        "&:first-of-type": {
            [cssSelector]: borderStyle.first
        },
        "&:last-of-type": {
            [cssSelector]: borderStyle.last
        }
    } : {
        [cssSelector]: {
            ...borderStyle.center,
            "&:first-child": borderStyle.first,
            "&:last-child": borderStyle.last
        }
    };
}
export { useAttachedStyle as default };
