<?php

namespace Hecate\Style\Parsers;

use Hecate\Lodash;

class CustomMinHeight extends BaseParser {


	public static $default = array(
		'type' => '',
	);

	public static function parse( $data = array() ) {
		$data = Lodash::merge( array(), static::$default, $data );

		$properties = array();
		switch ( $data['type'] ) {
			case 'fullScreen':
				$properties['min-height'] = '100vh';
				break;
			case 'auto':
				$properties['min-height'] = 'auto';
				break;
		}

		return $properties;

	}
}
