Files
jellyseerr/src/components/TitleCard/Placeholder.tsx
sct 1c6914f5ce feat: add studio/network sliders to discover
includes some adjustments to titlecard design
2021-03-09 02:23:29 +00:00

20 lines
432 B
TypeScript

import React from 'react';
interface PlaceholderProps {
canExpand?: boolean;
}
const Placeholder: React.FC<PlaceholderProps> = ({ canExpand = false }) => {
return (
<div
className={`relative animate-pulse rounded-xl bg-gray-700 ${
canExpand ? 'w-full' : 'w-36 sm:w-36 md:w-44'
}`}
>
<div className="w-full" style={{ paddingBottom: '150%' }} />
</div>
);
};
export default Placeholder;