22 lines
658 B
TypeScript
22 lines
658 B
TypeScript
export enum CardShape {
|
|
Backdrop = 'backdrop',
|
|
BackdropOverflow = 'overflowBackdrop',
|
|
Banner = 'banner',
|
|
Portrait = 'portrait',
|
|
PortraitOverflow = 'overflowPortrait',
|
|
Square = 'square',
|
|
SquareOverflow = 'overflowSquare'
|
|
}
|
|
|
|
export function getSquareShape(enableOverflow = true) {
|
|
return enableOverflow ? CardShape.SquareOverflow : CardShape.Square;
|
|
}
|
|
|
|
export function getBackdropShape(enableOverflow = true) {
|
|
return enableOverflow ? CardShape.BackdropOverflow : CardShape.Backdrop;
|
|
}
|
|
|
|
export function getPortraitShape(enableOverflow = true) {
|
|
return enableOverflow ? CardShape.PortraitOverflow : CardShape.Portrait;
|
|
}
|