2019-08-03 15:03:33 +02:00
|
|
|
import straightBarrelCuff from './cuff-barrel-straight'
|
|
|
|
import roundedBarrelCuff from './cuff-barrel-rounded'
|
|
|
|
import angledBarrelCuff from './cuff-barrel-angled'
|
|
|
|
import straightFrenchCuff from './cuff-french-straight'
|
|
|
|
import angledFrenchCuff from './cuff-french-angled'
|
|
|
|
import roundedFrenchCuff from './cuff-french-rounded'
|
2018-12-27 13:08:30 +01:00
|
|
|
|
|
|
|
export default part => {
|
2019-08-03 15:03:33 +02:00
|
|
|
let { options } = part.shorthand()
|
2018-12-27 13:08:30 +01:00
|
|
|
switch (options.cuffStyle) {
|
2019-08-03 15:03:33 +02:00
|
|
|
case 'roundedBarrelCuff':
|
|
|
|
return roundedBarrelCuff(part)
|
|
|
|
case 'straightBarrelCuff':
|
|
|
|
return straightBarrelCuff(part)
|
|
|
|
case 'roundedFrenchCuff':
|
|
|
|
return roundedFrenchCuff(part)
|
|
|
|
case 'angledFrenchCuff':
|
|
|
|
return angledFrenchCuff(part)
|
|
|
|
case 'straightFrenchCuff':
|
|
|
|
return straightFrenchCuff(part)
|
2018-12-27 13:08:30 +01:00
|
|
|
default:
|
2019-08-03 15:03:33 +02:00
|
|
|
return angledBarrelCuff(part)
|
2018-12-27 13:08:30 +01:00
|
|
|
}
|
2019-08-03 15:03:33 +02:00
|
|
|
}
|