mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
33 lines
778 B
TypeScript
33 lines
778 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import classNames from 'classnames';
|
|
import { Icon } from '@/components';
|
|
|
|
import '@/style/components/BigcapitalLoading.scss';
|
|
import { useIsDarkMode } from '@/hooks/useDarkMode';
|
|
|
|
/**
|
|
* Bigcapital logo loading.
|
|
*/
|
|
export default function BigcapitalLoading({ className }) {
|
|
const isDarkmode = useIsDarkMode();
|
|
|
|
return (
|
|
<div className={classNames('bigcapital-loading', className)}>
|
|
<div class="center">
|
|
{isDarkmode ? (
|
|
<Icon
|
|
icon="bigcapital-alt"
|
|
height={37}
|
|
width={228}
|
|
color="#fff"
|
|
className="bigcapital-logo"
|
|
/>
|
|
) : (
|
|
<Icon icon="bigcapital" height={37} width={228} />
|
|
)}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|