mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 05:50:22 +08:00
47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
|
import DButton from "discourse/components/d-button";
|
||
|
|
||
|
export const AdminPageActionButton = <template>
|
||
|
<DButton
|
||
|
class="admin-page-action-button btn-small"
|
||
|
...attributes
|
||
|
@action={{@action}}
|
||
|
@label={{@label}}
|
||
|
@title={{@title}}
|
||
|
@icon={{@icon}}
|
||
|
@isLoading={{@isLoading}}
|
||
|
/>
|
||
|
</template>;
|
||
|
export const PrimaryButton = <template>
|
||
|
<AdminPageActionButton
|
||
|
class="btn-primary"
|
||
|
...attributes
|
||
|
@action={{@action}}
|
||
|
@label={{@label}}
|
||
|
@title={{@title}}
|
||
|
@icon={{@icon}}
|
||
|
@isLoading={{@isLoading}}
|
||
|
/>
|
||
|
</template>;
|
||
|
export const DangerButton = <template>
|
||
|
<AdminPageActionButton
|
||
|
class="btn-danger"
|
||
|
...attributes
|
||
|
@action={{@action}}
|
||
|
@label={{@label}}
|
||
|
@title={{@title}}
|
||
|
@icon={{@icon}}
|
||
|
@isLoading={{@isLoading}}
|
||
|
/>
|
||
|
</template>;
|
||
|
export const DefaultButton = <template>
|
||
|
<AdminPageActionButton
|
||
|
class="btn-default"
|
||
|
...attributes
|
||
|
@action={{@action}}
|
||
|
@label={{@label}}
|
||
|
@title={{@title}}
|
||
|
@icon={{@icon}}
|
||
|
@isLoading={{@isLoading}}
|
||
|
/>
|
||
|
</template>;
|