stacker.news/components/charts-skeletons.js

20 lines
667 B
JavaScript
Raw Normal View History

2024-03-23 16:27:00 +00:00
export function GrowthPieChartSkeleton ({ height = '250px', minWidth = '200px' }) {
return <ChartSkeleton {...{ height, minWidth }} />
2024-03-23 03:47:21 +00:00
}
2024-03-23 16:27:00 +00:00
export function WhenComposedChartSkeleton ({ height = '300px', minWidth = '300px' }) {
return <ChartSkeleton {...{ height, minWidth }} />
2024-03-23 03:47:21 +00:00
}
2024-03-23 16:27:00 +00:00
export function WhenAreaChartSkeleton ({ height = '300px', minWidth = '300px' }) {
return <ChartSkeleton {...{ height, minWidth }} />
2024-03-23 03:47:21 +00:00
}
2024-03-23 16:27:00 +00:00
export function WhenLineChartSkeleton ({ height = '300px', minWidth = '300px' }) {
return <ChartSkeleton {...{ height, minWidth }} />
2024-03-23 03:47:21 +00:00
}
function ChartSkeleton (props) {
2024-03-23 16:27:00 +00:00
return <div className='mx-auto w-100 clouds' style={{ ...props }} />
2024-03-23 03:47:21 +00:00
}