
/// Helper for `o-brand` function.
/// @access private
@function _oShareGet($variables, $from: null) {
	@return oBrandGet($component: 'o-share', $variables: $variables, $from: $from);
}

/// Helper for `o-brand` function.
/// @access private
@function _oShareSupports($variant) {
	@return oBrandSupportsVariant($component: 'o-share', $variant: $variant);
}

// Define core brand
@if oBrandIs('core') {
	@include oBrandDefine('o-share', 'core', (
		'variables': (
			'size': $o-share-icon-size,
			'border-color': oPrivateFoundationGet('o3-color-palette-black-50'),
			'color': oPrivateFoundationGet('o3-color-palette-black'),
			'small': (
				'size': $o-share-icon-small-size,
				'margin': oPrivateSpacingByName('s3'),
			),
			'inverse': (
				'border-color': oPrivateColorsMix('o3-color-palette-slate', 'o3-color-palette-white', 50),
				'color': oPrivateFoundationGet('o3-color-palette-white'),
			)
		),
		'supports-variants': ()
	));
}

@if oBrandIs('internal') {
	@include oBrandDefine('o-share', 'internal', (
		'variables': (
			'size': $o-share-icon-size,
			'border-color': oPrivateFoundationGet('o3-color-palette-black-50'),
			'color': oPrivateFoundationGet('o3-color-palette-black'),
			'small': (
				'size': $o-share-icon-small-size,
				'margin': oPrivateSpacingByName('s3'),
			),
			'inverse': (
				'border-color': oPrivateColorsMix('o3-color-palette-slate', 'o3-color-palette-white', 50),
				'color': oPrivateFoundationGet('o3-color-palette-white'),
			)
		),
		'supports-variants': ()
	));
}
